From 4c899f0a79e80baa09c4a69c9c38476eb960331c Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 9 Aug 2025 19:56:57 -0700 Subject: python3Packages.tami4edgeapi: init at 3.0 --- .../python-modules/tami4edgeapi/default.nix | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/tami4edgeapi/default.nix (limited to 'pkgs/development/python-modules/tami4edgeapi/default.nix') diff --git a/pkgs/development/python-modules/tami4edgeapi/default.nix b/pkgs/development/python-modules/tami4edgeapi/default.nix new file mode 100644 index 000000000000..45cf533db170 --- /dev/null +++ b/pkgs/development/python-modules/tami4edgeapi/default.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pyjwt, + pypasser, + requests, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "tami4edgeapi"; + version = "3.0"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "Guy293"; + repo = "Tami4EdgeAPI"; + tag = "v${version}"; + hash = "sha256-rhJ8L6qLDnO50Xp2eqquRinDTQjMxWVSjNL5GQI1gvM="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + pyjwt + pypasser + requests + ]; + + # Package has no tests + doCheck = false; + + pythonImportsCheck = [ "Tami4EdgeAPI" ]; + + meta = { + description = "Python API client for Tami4 Edge / Edge+ devices"; + homepage = "https://github.com/Guy293/Tami4EdgeAPI"; + changelog = "https://github.com/Guy293/Tami4EdgeAPI/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} -- cgit v1.2.3