From ed66655585317cd77682e2c0c6dcd16f143f28a8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Jul 2023 20:39:10 +0200 Subject: [PATCH 1/2] python310Packages.iammeter: init at 0.2.1 --- .../python-modules/iammeter/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/iammeter/default.nix diff --git a/pkgs/development/python-modules/iammeter/default.nix b/pkgs/development/python-modules/iammeter/default.nix new file mode 100644 index 000000000000..7747e53f5bab --- /dev/null +++ b/pkgs/development/python-modules/iammeter/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "iammeter"; + version = "0.2.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-Q0o392Xf3cY5BkX4ic6pE3XKMSgek5cpW4TMqSh+Ew8="; + }; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "iammeter" + ]; + + meta = with lib; { + description = "Module to work with the IamMeter API"; + homepage = "https://pypi.org/project/iammeter/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9987879dca20..ce48fbf99c91 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4841,6 +4841,8 @@ self: super: with self; { i3-py = callPackage ../development/python-modules/i3-py { }; + iammeter = callPackage ../development/python-modules/iammeter { }; + iapws = callPackage ../development/python-modules/iapws { }; iaqualink = callPackage ../development/python-modules/iaqualink { }; From 14fd68b4a3079577fbaaa9a9cc8918b2c85141c4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Jul 2023 20:49:15 +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 390f88c16357..cc681f75c163 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1774,7 +1774,8 @@ pyialarm ]; "iammeter" = ps: with ps; [ - ]; # missing inputs: iammeter + iammeter + ]; "iaqualink" = ps: with ps; [ h2 iaqualink