From 704c1e57085cedf38c3e46652184ec12b0eb64ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 17 Jun 2021 12:47:17 +0200 Subject: [PATCH] python3Packages.doorbirdpy: init at 2.1.0 --- .../python-modules/doorbirdpy/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/doorbirdpy/default.nix diff --git a/pkgs/development/python-modules/doorbirdpy/default.nix b/pkgs/development/python-modules/doorbirdpy/default.nix new file mode 100644 index 000000000000..1290aaf05757 --- /dev/null +++ b/pkgs/development/python-modules/doorbirdpy/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +}: + +buildPythonPackage rec { + pname = "doorbirdpy"; + version = "2.1.0"; + + src = fetchPypi { + pname = "DoorBirdPy"; + inherit version; + sha256 = "ed0e94953cdf96111c7f73c5fcf358f65dc0ff5e47f63fc057bf18ca7512e606"; + }; + + propagatedBuildInputs = [ + requests + ]; + + # no tests on PyPI, no tags on GitLab + doCheck = false; + + pythonImportsCheck = [ "doorbirdpy" ]; + + meta = with lib; { + description = "Python wrapper for the DoorBird LAN API"; + homepage = "https://gitlab.com/klikini/doorbirdpy"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4ef474667680..2f91f0d6a70e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2142,6 +2142,8 @@ in { dominate = callPackage ../development/python-modules/dominate { }; + doorbirdpy = callPackage ../development/python-modules/doorbirdpy { }; + dopy = callPackage ../development/python-modules/dopy { }; dotty-dict = callPackage ../development/python-modules/dotty-dict { };