diff --git a/pkgs/development/python-modules/python-duco-connectivity/default.nix b/pkgs/development/python-modules/python-duco-connectivity/default.nix new file mode 100644 index 000000000000..987422109bdd --- /dev/null +++ b/pkgs/development/python-modules/python-duco-connectivity/default.nix @@ -0,0 +1,45 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + aioresponses, + pytest-asyncio, + pytest-cov-stub, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "python-duco-connectivity"; + version = "0.5.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "ronaldvdmeer"; + repo = "python-duco-connectivity"; + tag = "v${finalAttrs.version}"; + hash = "sha256-AH8EhC0v8GDNvPSUaTownV9d4upvKRiO//2sipGHz9g="; + }; + + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytest-cov-stub + pytestCheckHook + ]; + + pythonImportsCheck = [ "duco_connectivity" ]; + + meta = { + description = "Async HTTP client for the local Duco Connectivity API"; + homepage = "https://github.com/ronaldvdmeer/python-duco-connectivity"; + changelog = "https://github.com/ronaldvdmeer/python-duco-connectivity/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 4ac6ec7ea259..5f244f47270b 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1496,7 +1496,8 @@ ]; "duco" = ps: with ps; [ - ]; # missing inputs: python-duco-connectivity + python-duco-connectivity + ]; "dunehd" = ps: with ps; [ pdunehd @@ -7927,6 +7928,7 @@ "dsmr" "dsmr_reader" "duckdns" + "duco" "dunehd" "duotecno" "dwd_weather_warnings" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 354eeb362967..984026690e5e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15923,6 +15923,8 @@ self: super: with self; { python-duco-client = callPackage ../development/python-modules/python-duco-client { }; + python-duco-connectivity = callPackage ../development/python-modules/python-duco-connectivity { }; + python-ecobee-api = callPackage ../development/python-modules/python-ecobee-api { }; python-editor = callPackage ../development/python-modules/python-editor { };