From 1d0a5c25fcc440425af096e0996e04866d9c3f78 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Mon, 19 May 2025 20:57:48 +0300 Subject: [PATCH 1/4] python3Packages.oauth2-client: init at 1.4.2 --- .../python-modules/oauth2-client/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/oauth2-client/default.nix diff --git a/pkgs/development/python-modules/oauth2-client/default.nix b/pkgs/development/python-modules/oauth2-client/default.nix new file mode 100644 index 000000000000..956d8be427fe --- /dev/null +++ b/pkgs/development/python-modules/oauth2-client/default.nix @@ -0,0 +1,39 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + requests, +}: + +buildPythonPackage rec { + pname = "oauth2-client"; + version = "1.4.2"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-U4GQBEj/Gudi63xlxQEALqxGu1yi9JR3/f6vnplp8oQ="; + }; + + build-system = [ + setuptools + wheel + ]; + + dependencies = [ + requests + ]; + + pythonImportsCheck = [ + "oauth2_client" + ]; + + meta = { + description = "A client library for OAuth2"; + homepage = "https://pypi.org/project/oauth2-client/"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ kranzes ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 16b2f3110776..e453da4382ed 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10183,6 +10183,8 @@ self: super: with self; { oath = callPackage ../development/python-modules/oath { }; + oauth2-client = callPackage ../development/python-modules/oauth2-client { }; + oauth2client = callPackage ../development/python-modules/oauth2client { }; oauthenticator = callPackage ../development/python-modules/oauthenticator { }; From 241245c764d5e7a6a085209db95ca42fa805f7f0 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Mon, 19 May 2025 21:00:12 +0300 Subject: [PATCH 2/4] python3Packages.aiohttp-sse-client: init at 0.2.1 --- .../aiohttp-sse-client/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/aiohttp-sse-client/default.nix diff --git a/pkgs/development/python-modules/aiohttp-sse-client/default.nix b/pkgs/development/python-modules/aiohttp-sse-client/default.nix new file mode 100644 index 000000000000..c5812c22c870 --- /dev/null +++ b/pkgs/development/python-modules/aiohttp-sse-client/default.nix @@ -0,0 +1,50 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + aiohttp, + attrs, + multidict, + yarl, +}: + +buildPythonPackage rec { + pname = "aiohttp-sse-client"; + version = "0.2.1"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-UATiknFiSvWGFY3HFmywaHp6WZeqtbgI9LU0AOG3Ljs="; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace-fail "pytest-runner" "" + ''; + + build-system = [ + setuptools + wheel + ]; + + dependencies = [ + aiohttp + attrs + multidict + yarl + ]; + + pythonImportsCheck = [ + "aiohttp_sse_client" + ]; + + meta = { + description = "A Server-Sent Event python client base on aiohttp"; + homepage = "https://pypi.org/project/aiohttp-sse-client/"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ kranzes ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e453da4382ed..3ab8a8b3658c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -317,6 +317,8 @@ self: super: with self; { aiohttp-sse = callPackage ../development/python-modules/aiohttp-sse { }; + aiohttp-sse-client = callPackage ../development/python-modules/aiohttp-sse-client { }; + aiohttp-sse-client2 = callPackage ../development/python-modules/aiohttp-sse-client2 { }; aiohttp-swagger = callPackage ../development/python-modules/aiohttp-swagger { }; From 06edb5eb15644ed368daad5adfe380ac10fe17b3 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Mon, 19 May 2025 21:01:31 +0300 Subject: [PATCH 3/4] python3Packages.home-connect-async: init at 0.8.2 --- .../home-connect-async/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/home-connect-async/default.nix 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 { }; From 84e0264997e77ddb699b4a0ba8d49da92af60785 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Mon, 19 May 2025 21:04:37 +0300 Subject: [PATCH 4/4] home-assistant-custom-components.home_connect_alt: init at 1.2.1 --- .../home_connect_alt/package.nix | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/servers/home-assistant/custom-components/home_connect_alt/package.nix diff --git a/pkgs/servers/home-assistant/custom-components/home_connect_alt/package.nix b/pkgs/servers/home-assistant/custom-components/home_connect_alt/package.nix new file mode 100644 index 000000000000..6cea05d62fa6 --- /dev/null +++ b/pkgs/servers/home-assistant/custom-components/home_connect_alt/package.nix @@ -0,0 +1,28 @@ +{ + lib, + fetchFromGitHub, + buildHomeAssistantComponent, + home-connect-async, +}: + +buildHomeAssistantComponent rec { + owner = "ekutner"; + domain = "home_connect_alt"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "ekutner"; + repo = "home-connect-hass"; + tag = version; + hash = "sha256-v/C4KV/WddaXQIO709nHP4DJM/K3J3WQSrJnVaXQDSY="; + }; + + dependencies = [ home-connect-async ]; + + meta = with lib; { + description = "Alternative (and improved) Home Connect integration for Home Assistant"; + homepage = "https://github.com/ekutner/home-connect-hass"; + maintainers = with maintainers; [ kranzes ]; + license = licenses.mit; + }; +}