diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2021-09-28 13:29:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 13:29:39 +0200 |
commit | 6556d8ef32237a5bbd8c8b17a30c03a58a680809 (patch) | |
tree | 36cefe528973d49dbbcf11624402c3ef3327a5f9 | |
parent | 2063e234a3aa69dc5e7ae64049dac5f0ae84a66b (diff) | |
parent | a8892f0837a06a034e275be2363f22b6fe9a78cd (diff) |
Merge pull request #139479 from fabaff/pydoods
-rw-r--r-- | pkgs/development/python-modules/pydoods/default.nix | 35 | ||||
-rw-r--r-- | pkgs/servers/home-assistant/component-packages.nix | 2 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 38 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pydoods/default.nix b/pkgs/development/python-modules/pydoods/default.nix new file mode 100644 index 0000000000000..ff0872e423771 --- /dev/null +++ b/pkgs/development/python-modules/pydoods/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "pydoods"; + version = "1.0.2"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "1brpcfj1iy9mhf2inla4gi681zlh7g4qvhr6vrprk6r693glpn3x"; + }; + + propagatedBuildInputs = [ + requests + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "pydoods" ]; + + meta = with lib; { + description = "Python wrapper for the DOODS service"; + homepage = "https://github.com/snowzach/pydoods"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 180ffecc9a95e..a855c22614114 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -188,7 +188,7 @@ "dlna_dmr" = ps: with ps; [ aiohttp-cors async-upnp-client ifaddr ]; "dnsip" = ps: with ps; [ aiodns ]; "dominos" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pizzapi - "doods" = ps: with ps; [ pillow ]; # missing inputs: pydoods + "doods" = ps: with ps; [ pillow pydoods ]; "doorbird" = ps: with ps; [ aiohttp-cors doorbirdpy ]; "dovado" = ps: with ps; [ ]; # missing inputs: dovado "downloader" = ps: with ps; [ ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6552103e9ad69..3d61fd610c00e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6138,6 +6138,8 @@ in { pydocumentdb = callPackage ../development/python-modules/pydocumentdb { }; + pydoods = callPackage ../development/python-modules/pydoods { }; + pydot = callPackage ../development/python-modules/pydot { inherit (pkgs) graphviz; }; |