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/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index ab0ff37aa88b..6994c04040d7 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -6296,7 +6296,8 @@ ]; "vegehub" = ps: with ps; [ - ]; # missing inputs: vegehub + vegehub + ]; "velbus" = ps: with ps; [ aiousbwatcher @@ -7688,6 +7689,7 @@ "vacuum" "vallox" "valve" + "vegehub" "velbus" "velux" "venstar" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ab47446d12a8..1b2caf155f00 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19209,6 +19209,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 { };