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/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 9d96cee085e7..687827b9f1ee 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1778,7 +1778,8 @@ pyialarm ]; "iammeter" = ps: with ps; [ - ]; # missing inputs: iammeter + iammeter + ]; "iaqualink" = ps: with ps; [ h2 iaqualink diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9a986a853aa4..9291881b912c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4853,6 +4853,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 { };