From 628d9fc18b0e5f6ff390e32da5e52db461f20b4a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 10 Dec 2021 11:46:39 +0100 Subject: [PATCH 1/2] python3Packages.homematicip: apply patch to drop loop kwarg usage --- .../development/python-modules/homematicip/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/homematicip/default.nix b/pkgs/development/python-modules/homematicip/default.nix index e6759f498a32..c8becd07be3b 100644 --- a/pkgs/development/python-modules/homematicip/default.nix +++ b/pkgs/development/python-modules/homematicip/default.nix @@ -5,6 +5,7 @@ , async-timeout , buildPythonPackage , fetchFromGitHub +, fetchpatch , pytestCheckHook , pythonOlder , pytest-aiohttp @@ -26,6 +27,15 @@ buildPythonPackage rec { sha256 = "008snxx9ijpi1zr1pi1v4a6g74j821hyw0khs9lmi08v2mcabm36"; }; + patches = [ + (fetchpatch { + # Drop loop kwarg from async_timeout.timeout + # https://github.com/coreGreenberet/homematicip-rest-api/pull/424 + url = "https://github.com/coreGreenberet/homematicip-rest-api/commit/90efb335667e3d462b7f9ef113d2e0b8bb4e96b4.patch"; + sha256 = "0f2bbs0666mf6sc7p4n8fwh29yjilkq36qf5pn0waf6iqdzxqwih"; + }) + ]; + propagatedBuildInputs = [ aenum aiohttp From 1c515c5b9a5659616af31772f4f0c4aa80d3dcd2 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 10 Dec 2021 18:45:30 +0100 Subject: [PATCH 2/2] home-assistant: pin aiohue at 2.6.3 --- pkgs/servers/home-assistant/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 5febf010dff8..9d6618452e6a 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -22,6 +22,7 @@ let defaultOverrides = [ # Remove with Home Assistant 2021.12 + (mkOverride "aiohue" "2.6.3" "sha256-zpwkDKPrE5TFZQO0A1ifTQ7n+TRFpXi3jai3h5plyGM=") (mkOverride "PyChromecast" "9.4.0" "sha256-Y8PLrjxZHml7BmklEJ/VXGqkRyneAy+QVA5rusPeBHQ=") # aiounify 29 breaks integration tests