From 5f0f1d5459817a350a41824a63ee7e7ef0f5e9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 16 Jul 2025 18:23:29 -0700 Subject: [PATCH 1/2] python3Packages.vegehub: init at 0.1.24 --- .../python-modules/vegehub/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/vegehub/default.nix diff --git a/pkgs/development/python-modules/vegehub/default.nix b/pkgs/development/python-modules/vegehub/default.nix new file mode 100644 index 000000000000..ae7b272fb8bf --- /dev/null +++ b/pkgs/development/python-modules/vegehub/default.nix @@ -0,0 +1,48 @@ +{ + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + lib, + poetry-core, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "vegehub"; + version = "0.1.24"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Thulrus"; + repo = "VegeHubPyPiLib"; + tag = "V${version}"; + hash = "sha256-W/5kvertNC7w2IS/N5k06cDyNFgel2s4/znR+Lz5RJU="; + }; + + postPatch = '' + rm -r dist + ''; + + build-system = [ poetry-core ]; + + dependencies = [ + aiohttp + ]; + + pythonImportsCheck = [ "vegehub" ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytestCheckHook + ]; + + meta = { + description = "Basic package for simplifying interactions with the Vegetronix VegeHub"; + homepage = "https://github.com/Thulrus/VegeHubPyPiLib"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3bd972a556b9..99078727ade6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19171,6 +19171,8 @@ self: super: with self; { vega-datasets = callPackage ../development/python-modules/vega-datasets { }; + vegehub = callPackage ../development/python-modules/vegehub { }; + vehicle = callPackage ../development/python-modules/vehicle { }; velbus-aio = callPackage ../development/python-modules/velbus-aio { }; From 5a8537864448c9aaaa3840421bc3c4dbabeac697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 16 Jul 2025 18:24:44 -0700 Subject: [PATCH 2/2] home-assistant: support vegehub component --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b3fe8ceb38c1..fc3db796184b 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -6290,7 +6290,8 @@ ]; "vegehub" = ps: with ps; [ - ]; # missing inputs: vegehub + vegehub + ]; "velbus" = ps: with ps; [ aiousbwatcher @@ -7679,6 +7680,7 @@ "vacuum" "vallox" "valve" + "vegehub" "velbus" "velux" "venstar"