diff --git a/pkgs/development/python-modules/home-connect-async/default.nix b/pkgs/development/python-modules/home-connect-async/default.nix new file mode 100644 index 000000000000..dec2083d0248 --- /dev/null +++ b/pkgs/development/python-modules/home-connect-async/default.nix @@ -0,0 +1,48 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + aiohttp, + aiohttp-sse-client, + charset-normalizer, + dataclasses-json, + oauth2-client, +}: + +buildPythonPackage rec { + pname = "home-connect-async"; + version = "0.8.2"; + pyproject = true; + + src = fetchPypi { + pname = "home_connect_async"; + inherit version; + hash = "sha256-npVMEiwclKr9HR2M03GNkyJULeLEE9BAnIw8Zoy98nQ="; + }; + + build-system = [ + setuptools + wheel + ]; + + dependencies = [ + aiohttp + aiohttp-sse-client + charset-normalizer + dataclasses-json + oauth2-client + ]; + + pythonImportsCheck = [ + "home_connect_async" + ]; + + meta = { + description = "Async SDK for BSH Home Connect API"; + homepage = "https://pypi.org/project/home-connect-async"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ kranzes ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3ab8a8b3658c..4d67e5e32e0d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6390,6 +6390,8 @@ self: super: with self; { callPackage ../development/python-modules/home-assistant-chip-wheels { } ); + home-connect-async = callPackage ../development/python-modules/home-connect-async { }; + homeassistant-stubs = callPackage ../servers/home-assistant/stubs.nix { }; homeconnect = callPackage ../development/python-modules/homeconnect { };