From 61222ff22dc42a1a8d467a948260c9595152ecaf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 1 Jun 2022 22:02:35 +0200 Subject: [PATCH] python310Packages.pyialarmxr: init at 1.0.18 --- .../python-modules/pyialarmxr/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/pyialarmxr/default.nix diff --git a/pkgs/development/python-modules/pyialarmxr/default.nix b/pkgs/development/python-modules/pyialarmxr/default.nix new file mode 100644 index 000000000000..0110411a193d --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 189207368ba3..7d7dfbc6bb73 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7397,6 +7397,8 @@ in { pyialarm = callPackage ../development/python-modules/pyialarm { }; + pyialarmxr = callPackage ../development/python-modules/pyialarmxr { }; + pyicloud = callPackage ../development/python-modules/pyicloud { }; PyICU = callPackage ../development/python-modules/pyicu { };