From a3bb3a2f50cebe2a2031ff0cfb5c9675aeaadc74 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 6 Jun 2026 20:39:47 -0700 Subject: [PATCH 1/2] python3Packages.python-duco-connectivity: init at 0.6.0 --- .../python-duco-connectivity/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/python-duco-connectivity/default.nix 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..43d89bb9f22a --- /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.6.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "ronaldvdmeer"; + repo = "python-duco-connectivity"; + tag = "v${finalAttrs.version}"; + hash = "sha256-4lXK5os7OddLJUW+iBOFM8h1RniDMugt3FMhwaGh0e8="; + }; + + 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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 89ca0b58fe5f..ff9fdc9ff032 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15922,6 +15922,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 { }; From e08080d79339b3e358b6e9bf73adcd801d505f1e Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 6 Jun 2026 20:41:00 -0700 Subject: [PATCH 2/2] home-assistant: update component packages --- .../python-modules/python-duco-connectivity/default.nix | 4 ++-- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/python-duco-connectivity/default.nix b/pkgs/development/python-modules/python-duco-connectivity/default.nix index 43d89bb9f22a..987422109bdd 100644 --- a/pkgs/development/python-modules/python-duco-connectivity/default.nix +++ b/pkgs/development/python-modules/python-duco-connectivity/default.nix @@ -12,14 +12,14 @@ buildPythonPackage (finalAttrs: { pname = "python-duco-connectivity"; - version = "0.6.0"; + version = "0.5.0"; pyproject = true; src = fetchFromGitHub { owner = "ronaldvdmeer"; repo = "python-duco-connectivity"; tag = "v${finalAttrs.version}"; - hash = "sha256-4lXK5os7OddLJUW+iBOFM8h1RniDMugt3FMhwaGh0e8="; + hash = "sha256-AH8EhC0v8GDNvPSUaTownV9d4upvKRiO//2sipGHz9g="; }; build-system = [ setuptools ]; diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 71b1cac92d68..c2d93b967fee 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1494,7 +1494,8 @@ ]; "duco" = ps: with ps; [ - ]; # missing inputs: python-duco-connectivity + python-duco-connectivity + ]; "dunehd" = ps: with ps; [ pdunehd @@ -7923,6 +7924,7 @@ "dsmr" "dsmr_reader" "duckdns" + "duco" "dunehd" "duotecno" "dwd_weather_warnings"