summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2021-11-22 09:42:51 +0100
committerGitHub <noreply@github.com>2021-11-22 09:42:51 +0100
commit99f18b84b660d369cc1774d6812d664f0f133d8a (patch)
treeb6d36c6b746ef6247b3ad5a3ee19bcbe2275f0e3 /pkgs
parent2cd8fe9d04b8109bc12054096117c5d8c947653b (diff)
parent18aca788e537d70665aca9d877f5c776e3681d75 (diff)
downloadnixpkgs-99f18b84b660d369cc1774d6812d664f0f133d8a.tar
nixpkgs-99f18b84b660d369cc1774d6812d664f0f133d8a.tar.gz
nixpkgs-99f18b84b660d369cc1774d6812d664f0f133d8a.tar.bz2
nixpkgs-99f18b84b660d369cc1774d6812d664f0f133d8a.tar.lz
nixpkgs-99f18b84b660d369cc1774d6812d664f0f133d8a.tar.xz
nixpkgs-99f18b84b660d369cc1774d6812d664f0f133d8a.tar.zst
nixpkgs-99f18b84b660d369cc1774d6812d664f0f133d8a.zip
Merge pull request #146747 from fabaff/pysecuritas
python3Packages.pysecuritas: init at 0.1.6
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/pysecuritas/default.nix40
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pysecuritas/default.nix b/pkgs/development/python-modules/pysecuritas/default.nix
new file mode 100644
index 00000000000..7579e014b69
--- /dev/null
+++ b/pkgs/development/python-modules/pysecuritas/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, requests
+, xmltodict
+}:
+
+buildPythonPackage rec {
+  pname = "pysecuritas";
+  version = "0.1.6";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.6";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "W3DLZCXUH9y5NPipFEu6URmKN+oVXMgeDF1rfKtxRng=";
+  };
+
+  propagatedBuildInputs = [
+    xmltodict
+    requests
+  ];
+
+  # Project doesn't ship tests with PyPI releases
+  # https://github.com/Cebeerre/pysecuritas/issues/13
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "pysecuritas"
+  ];
+
+  meta = with lib; {
+    description = "Python client to access Securitas Direct Mobile API";
+    homepage = "https://github.com/Cebeerre/pysecuritas";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 65bfea9282d..ba6c2623bc4 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -7095,6 +7095,8 @@ in {
 
   pysearpc = toPythonModule pkgs.libsearpc;
 
+  pysecuritas = callPackage ../development/python-modules/pysecuritas { };
+
   pysendfile = callPackage ../development/python-modules/pysendfile { };
 
   pysensors = callPackage ../development/python-modules/pysensors { };