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 65bfea9282dc..ba6c2623bc4d 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 { };