From 5b29a1f7951cc2c3176784b31fb7cb9d131d47b2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 2 Jan 2021 08:54:05 +0100 Subject: [PATCH] python3Packages.hole: init at 0.5.1 --- .../python-modules/hole/default.nix | 33 +++++++++++++++++++ .../home-assistant/component-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/hole/default.nix diff --git a/pkgs/development/python-modules/hole/default.nix b/pkgs/development/python-modules/hole/default.nix new file mode 100644 index 000000000000..87c63be32e8c --- /dev/null +++ b/pkgs/development/python-modules/hole/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, aiohttp +, async-timeout +}: + +buildPythonPackage rec { + pname = "hole"; + version = "0.5.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "065fxc0l16j8xkjd0y0qar9cmqmjyp8jcshakbakldkfscpx3s5m"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + ]; + + # no tests are present + doCheck = false; + + pythonImportsCheck = [ "hole" ]; + + meta = with lib; { + description = "Python API for interacting with a Pihole instance."; + homepage = "https://github.com/home-assistant-ecosystem/python-hole"; + 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 d26b1dedd88e..2d025d63dd45 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -612,7 +612,7 @@ "person" = ps: with ps; [ aiohttp-cors pillow ]; "philips_js" = ps: with ps; [ ]; # missing inputs: ha-philipsjs "pi4ioe5v9xxxx" = ps: with ps; [ ]; # missing inputs: pi4ioe5v9xxxx - "pi_hole" = ps: with ps; [ ]; # missing inputs: hole + "pi_hole" = ps: with ps; [ hole ]; "picotts" = ps: with ps; [ ]; "piglow" = ps: with ps; [ ]; # missing inputs: piglow "pilight" = ps: with ps; [ ]; # missing inputs: pilight diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a53b50146fec..47eb3643f61a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2797,6 +2797,8 @@ in { hocr-tools = callPackage ../development/python-modules/hocr-tools { }; + hole = callPackage ../development/python-modules/hole { }; + holidays = callPackage ../development/python-modules/holidays { }; holoviews = callPackage ../development/python-modules/holoviews { };