summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tami4edgeapi/default.nix
diff options
context:
space:
mode:
authornixpkgs-ci[bot] <190413589+nixpkgs-ci[bot]@users.noreply.github.com>2025-08-11 00:24:16 +0000
committerGitHub <noreply@github.com>2025-08-11 00:24:16 +0000
commitef3238a84cc5d5b60de2aec6ecc7d434c8da1b5c (patch)
tree5605011b7d6dad28bac39254aa1488cadddac7c3 /pkgs/development/python-modules/tami4edgeapi/default.nix
parenthaskellPackages.cabal2nix-unstable: 2025-06-14 -> 2025-08-10 (diff)
parentbalena-cli: 22.1.5 -> 22.2.4 (#432566) (diff)
downloadnixpkgs-origin/haskell-updates.tar.gz
Merge b1b0d690fbb0e4a2fa029ab625a3b1646487fee1 into haskell-updatesorigin/haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/tami4edgeapi/default.nix')
-rw-r--r--pkgs/development/python-modules/tami4edgeapi/default.nix46
1 files changed, 46 insertions, 0 deletions
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 ];
+ };
+}