diff --git a/pkgs/development/python-modules/aiomelcloudhome/default.nix b/pkgs/development/python-modules/aiomelcloudhome/default.nix new file mode 100644 index 000000000000..25675dc9696f --- /dev/null +++ b/pkgs/development/python-modules/aiomelcloudhome/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + aiohttp, + pydantic, + tenacity, + yarl, + aresponses, + pytest-cov-stub, + pytestCheckHook, + syrupy, +}: + +buildPythonPackage (finalAttrs: { + pname = "aiomelcloudhome"; + version = "0.1.9"; + pyproject = true; + + src = fetchFromGitHub { + owner = "erwindouna"; + repo = "aiomelcloudhome"; + tag = "v${finalAttrs.version}"; + hash = "sha256-aYaV7+Lj7LShO0HqoUjSFAMTOHY5piMdSACOVizGgco="; + }; + + build-system = [ hatchling ]; + + dependencies = [ + aiohttp + pydantic + tenacity + yarl + ]; + + nativeCheckInputs = [ + aresponses + pytest-cov-stub + pytestCheckHook + syrupy + ]; + + pythonImportsCheck = [ "aiomelcloudhome" ]; + + meta = { + description = "Asynchronous Python client for the Melcloud Home API"; + homepage = "https://github.com/erwindouna/aiomelcloudhome"; + changelog = "https://github.com/erwindouna/aiomelcloudhome/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 e3604c024a57..41ffa25c34e6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -422,6 +422,8 @@ self: super: with self; { aiomealie = callPackage ../development/python-modules/aiomealie { }; + aiomelcloudhome = callPackage ../development/python-modules/aiomelcloudhome { }; + aiomisc = callPackage ../development/python-modules/aiomisc { }; aiomisc-pytest = callPackage ../development/python-modules/aiomisc-pytest { };