mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-07 05:43:41 +00:00
38 lines
867 B
Nix
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 ];
|
|
};
|
|
})
|