From 18aca788e537d70665aca9d877f5c776e3681d75 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Nov 2021 12:13:56 +0100 Subject: [PATCH] python3Packages.pysecuritas: init at 0.1.6 --- .../python-modules/pysecuritas/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/pysecuritas/default.nix diff --git a/pkgs/development/python-modules/pysecuritas/default.nix b/pkgs/development/python-modules/pysecuritas/default.nix new file mode 100644 index 000000000000..7579e014b69c --- /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 87b06b9eb148..e4b0ea6772a0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7071,6 +7071,8 @@ in { pysearpc = toPythonModule pkgs.libsearpc; + pysecuritas = callPackage ../development/python-modules/pysecuritas { }; + pysendfile = callPackage ../development/python-modules/pysendfile { }; pysensors = callPackage ../development/python-modules/pysensors { };