diff --git a/pkgs/development/python-modules/iotawattpy/default.nix b/pkgs/development/python-modules/ha-iotawattpy/default.nix similarity index 69% rename from pkgs/development/python-modules/iotawattpy/default.nix rename to pkgs/development/python-modules/ha-iotawattpy/default.nix index d7a4be359467..c50c500e31f5 100644 --- a/pkgs/development/python-modules/iotawattpy/default.nix +++ b/pkgs/development/python-modules/ha-iotawattpy/default.nix @@ -4,20 +4,23 @@ fetchPypi, httpx, pythonOlder, + setuptools, }: buildPythonPackage rec { - pname = "iotawattpy"; - version = "0.1.0"; - format = "setuptools"; + pname = "ha-iotawattpy"; + version = "0.1.2"; + pyproject = true; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - sha256 = "1pyxm87lvd6zy0rx7r9jivk2li267r3xr0b9p6vf0v0vp9fmgsw3"; + hash = "sha256-eMsBEbmENjbJME9Gzo4O9LbGo1i0MP0IuwLUAYqxbI8="; }; + build-system = [ setuptools ]; + propagatedBuildInputs = [ httpx ]; # Project doesn't tag releases or ship the tests with PyPI @@ -27,7 +30,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "iotawattpy" ]; meta = with lib; { - description = "Python interface for the IoTaWatt device"; + description = "Python library for the IoTaWatt Energy device"; homepage = "https://github.com/gtdiehl/iotawattpy"; license = licenses.gpl3Plus; maintainers = with maintainers; [ fab ]; diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index f42d6274ab50..74ac5243550d 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2734,7 +2734,8 @@ ]; "iotawatt" = ps: with ps; [ - ]; # missing inputs: ha-iotawattpy + ha-iotawattpy + ]; "iotty" = ps: with ps; [ iottycloud @@ -7181,6 +7182,7 @@ "intent_script" "iometer" "ios" + "iotawatt" "iotty" "ipma" "ipp" diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 040c91738a09..cb90d3b467a7 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -338,6 +338,7 @@ mapAliases ({ imgaug = throw "imgaug has been removed as it is no longer maintained"; # added 2023-07-10 imgtool = throw "imgtool has been promoted to a top-level attribute name: `mcuboot-imgtool`"; # added 2024-10-09 intreehook = throw "intreehooks has been removed because it is obsolete as a backend-path key was added to PEP 517"; # added 2023-04-11 + iotawattpy = ha-iotawattpy; # added 2025-07-06 ipaddress = throw "ipaddress has been removed because it is no longer required since python 2.7."; # added 2022-05-30 ipdbplugin = throw "ipdbplugin has been removed because it has no longer maintained for 6 years"; # added 2024-05-21 ipython_genutils = ipython-genutils; # added 2023-10-12 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f6c19bdf00f9..27524ffd0139 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6328,6 +6328,8 @@ self: super: with self; { ha-ffmpeg = callPackage ../development/python-modules/ha-ffmpeg { }; + ha-iotawattpy = callPackage ../development/python-modules/ha-iotawattpy { }; + ha-mqtt-discoverable = callPackage ../development/python-modules/ha-mqtt-discoverable { }; ha-philipsjs = callPackage ../development/python-modules/ha-philipsjs { }; @@ -7040,8 +7042,6 @@ self: super: with self; { iosbackup = callPackage ../development/python-modules/iosbackup { }; - iotawattpy = callPackage ../development/python-modules/iotawattpy { }; - iottycloud = callPackage ../development/python-modules/iottycloud { }; iowait = callPackage ../development/python-modules/iowait { };