diff --git a/pkgs/development/python-modules/aio-wattwaechter/default.nix b/pkgs/development/python-modules/aio-wattwaechter/default.nix new file mode 100644 index 000000000000..466c8f726089 --- /dev/null +++ b/pkgs/development/python-modules/aio-wattwaechter/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + aioresponses, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "aio-wattwaechter"; + version = "1.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "SmartCircuits-GmbH"; + repo = "WattWaechter-PyPI"; + tag = "v${finalAttrs.version}"; + hash = "sha256-hM2DGQBEUr1HYd0CDdjRdFA7+HKaF2kLVFrAWCjP+CU="; + }; + + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "aio_wattwaechter" ]; + + meta = { + description = "Async Python client for the WattWächter smart meter API"; + homepage = "https://github.com/SmartCircuits-GmbH/WattWaechter-PyPI"; + changelog = "https://github.com/SmartCircuits-GmbH/WattWaechter-PyPI/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 8aec8c6d20f8..779db0d0307a 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -7370,7 +7370,8 @@ ]; "wattwaechter" = ps: with ps; [ - ]; # missing inputs: aio-wattwaechter + aio-wattwaechter + ]; "waze_travel_time" = ps: with ps; [ pywaze @@ -8868,6 +8869,7 @@ "watergate" "watts" "watttime" + "wattwaechter" "waze_travel_time" "weather" "weatherflow" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2604e7a1364b..2cf0754154e6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -208,6 +208,8 @@ self: super: with self; { aio-pika = callPackage ../development/python-modules/aio-pika { }; + aio-wattwaechter = callPackage ../development/python-modules/aio-wattwaechter { }; + aioacaia = callPackage ../development/python-modules/aioacaia { }; aioairctrl = callPackage ../development/python-modules/aioairctrl { };