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 { };