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