From 9a76039f9eb6a37ca4e4ca5951ba39f2c7f7083f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 23 Jun 2021 18:52:08 +0200 Subject: [PATCH 1/3] python3Packages.huisbaasje-client: init at 0.1.0 --- .../huisbaasje-client/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/huisbaasje-client/default.nix diff --git a/pkgs/development/python-modules/huisbaasje-client/default.nix b/pkgs/development/python-modules/huisbaasje-client/default.nix new file mode 100644 index 000000000000..2ca1768342d4 --- /dev/null +++ b/pkgs/development/python-modules/huisbaasje-client/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, aiohttp +}: + +buildPythonPackage rec { + pname = "huisbaasje-client"; + version = "0.1.0"; + + disabled = pythonOlder "3.6"; # requires python version >=3.6 + + src = fetchPypi { + inherit pname version; + sha256 = "6bc02384c37aba01719269b05882572050c80cd9abf98caa38519308e05b7db8"; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # no tests on PyPI, no tags on GitHub + doCheck = false; + + pythonImportsCheck = [ "huisbaasje.huisbaasje" ]; + + meta = with lib; { + description = "Client for Huisbaasje"; + homepage = "https://github.com/denniss17/huisbaasje-client"; + license = licenses.asl20; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a61f1273190b..cad4ea8e77f1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3330,6 +3330,8 @@ in { huggingface-hub = callPackage ../development/python-modules/huggingface-hub { }; + huisbaasje-client = callPackage ../development/python-modules/huisbaasje-client { }; + humanfriendly = callPackage ../development/python-modules/humanfriendly { }; humanize = callPackage ../development/python-modules/humanize { }; From 4b80478604efb77fc7d2a546504ec4e04e2329d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 23 Jun 2021 18:52:27 +0200 Subject: [PATCH 2/3] home-assistant: update component-packages.nix --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 4d931d24847d..510f209930e6 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -371,7 +371,7 @@ "huawei_lte" = ps: with ps; [ getmac huawei-lte-api stringcase url-normalize ]; "huawei_router" = ps: with ps; [ ]; "hue" = ps: with ps; [ aiohue ]; - "huisbaasje" = ps: with ps; [ ]; # missing inputs: huisbaasje-client + "huisbaasje" = ps: with ps; [ huisbaasje-client ]; "humidifier" = ps: with ps; [ ]; "hunterdouglas_powerview" = ps: with ps; [ ]; # missing inputs: aiopvapi "hvv_departures" = ps: with ps; [ ]; # missing inputs: pygti From 6a50f94d238403ee8e02b736e607b07a9152b9aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 23 Jun 2021 18:53:38 +0200 Subject: [PATCH 3/3] home-assistant: test huisbaasje component --- pkgs/servers/home-assistant/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 3752e2c6d74c..0a603f856172 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -459,6 +459,7 @@ in with py.pkgs; buildPythonApplication rec { "http" "huawei_lte" "hue" + "huisbaasje" "humidifier" "hyperion" "ialarm"