Files
2026-05-09 22:10:00 -07:00

38 lines
867 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
httpx,
}:
buildPythonPackage (finalAttrs: {
pname = "kiosker-python-api";
version = "1.2.9";
pyproject = true;
src = fetchFromGitHub {
owner = "Top-North";
repo = "kiosker-python";
tag = finalAttrs.version;
hash = "sha256-DGJ1lxi4pP4gyRWDpeUdyPGCKQmzpRaWw8bwHrFUKF0=";
};
build-system = [ hatchling ];
dependencies = [ httpx ];
# Tests require a live Kiosker device (HOST/TOKEN env vars).
doCheck = false;
pythonImportsCheck = [ "kiosker" ];
meta = {
description = "Python wrapper for the Kiosker API";
homepage = "https://github.com/Top-North/kiosker-python";
changelog = "https://github.com/Top-North/kiosker-python/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})