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 { };