From ae51dd5b70cab6200c85e540476a1f64b1945744 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Apr 2022 21:33:01 +0200 Subject: [PATCH 1/2] python3Packages.python-family-hub-local: init at 0.0.2 --- .../python-family-hub-local/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/python-family-hub-local/default.nix diff --git a/pkgs/development/python-modules/python-family-hub-local/default.nix b/pkgs/development/python-modules/python-family-hub-local/default.nix new file mode 100644 index 000000000000..01d9da8423dd --- /dev/null +++ b/pkgs/development/python-modules/python-family-hub-local/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, aiohttp +, async-timeout +, pillow +, fetchPypi +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "python-family-hub-local"; + version = "0.0.2"; + format = "setuptools"; + + disabled = pythonOlder "3.9"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + hash = "sha256-bbOBlUJ4g+HOcJihEBAz3lsHR9Gn07z8st14FRFeJbc="; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + pillow + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "pyfamilyhublocal" + ]; + + meta = with lib; { + description = "Module to accesse information from Samsung FamilyHub fridges locally"; + homepage = "https://github.com/Klathmon/python-family-hub-local"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 92039ecefa8b..25d143b0d21d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8138,6 +8138,8 @@ in { python-editor = callPackage ../development/python-modules/python-editor { }; + python-family-hub-local = callPackage ../development/python-modules/python-family-hub-local { }; + python-fsutil = callPackage ../development/python-modules/python-fsutil { }; pythonefl = callPackage ../development/python-modules/python-efl { }; From 98ca6c1fbd51de674a78cec6e091bd5c262f0216 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Apr 2022 21:34:00 +0200 Subject: [PATCH 2/2] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 7017331af86d..cb52124f2d6e 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -773,7 +773,8 @@ "fail2ban" = ps: with ps; [ ]; "familyhub" = ps: with ps; [ - ]; # missing inputs: python-family-hub-local + python-family-hub-local + ]; "fan" = ps: with ps; [ ]; "fastdotcom" = ps: with ps; [