summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyialarmxr/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pyialarmxr/default.nix')
-rw-r--r--pkgs/development/python-modules/pyialarmxr/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyialarmxr/default.nix b/pkgs/development/python-modules/pyialarmxr/default.nix
new file mode 100644
index 00000000000..0110411a193
--- /dev/null
+++ b/pkgs/development/python-modules/pyialarmxr/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, lxml
+, pythonOlder
+, xmltodict
+}:
+
+buildPythonPackage rec {
+  pname = "pyialarmxr";
+  version = "1.0.18";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "bigmoby";
+    repo = pname;
+    rev = version;
+    hash = "sha256-Q1NsPLA1W4nxSG/9jlMf6BkC3ZrUrhl8oDX7U4aAjxM=";
+  };
+  propagatedBuildInputs = [
+    lxml
+    xmltodict
+  ];
+
+  # Module has no test
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "pyialarmxr"
+  ];
+
+  meta = with lib; {
+    description = "Library to interface with Antifurto365 iAlarmXR systems";
+    homepage = "https://github.com/bigmoby/pyialarmxr";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}