about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-12-12 09:18:20 +0100
committerGitHub <noreply@github.com>2022-12-12 09:18:20 +0100
commit3b7307700ea6afb56df37f4b98586ffbaff7529e (patch)
tree46bdc12f78e088a84442e39201a891f555c2c1af /pkgs/development
parent5e8a6d3fa22cc0426fb89e2f0adea712c5c29566 (diff)
parent7daf8fbabc82dcb272a757f9e9ae71fc05c1bb21 (diff)
Merge pull request #205621 from fabaff/aranet4
python310Packages.aranet4: init at 2.1.2
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/aranet4/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aranet4/default.nix b/pkgs/development/python-modules/aranet4/default.nix
new file mode 100644
index 0000000000000..09781342b288d
--- /dev/null
+++ b/pkgs/development/python-modules/aranet4/default.nix
@@ -0,0 +1,43 @@
+{ lib
+, bleak
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+, pythonOlder
+, requests
+}:
+
+buildPythonPackage rec {
+  pname = "aranet4";
+  version = "2.1.3";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "Anrijs";
+    repo = "Aranet4-Python";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-5q4eOC9iuN8pUmDsiQ7OwEXkxi4KdL+bhGVjlQlTBAg=";
+  };
+
+  propagatedBuildInputs = [
+    bleak
+    requests
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [
+    "aranet4"
+  ];
+
+  meta = with lib; {
+    description = "Module to interact with Aranet4 devices";
+    homepage = "https://github.com/Anrijs/Aranet4-Python";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}