From 96b565dad2262dcc799c3978b3c9f4d87edd26c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 2 Oct 2025 03:51:06 -0700 Subject: [PATCH 1/2] python3Packages.pyqwikswitch: replace async-timeout with asyncio.timeout --- .../python-modules/pyqwikswitch/default.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyqwikswitch/default.nix b/pkgs/development/python-modules/pyqwikswitch/default.nix index b68e11db72d6..f519e7c21275 100644 --- a/pkgs/development/python-modules/pyqwikswitch/default.nix +++ b/pkgs/development/python-modules/pyqwikswitch/default.nix @@ -1,22 +1,35 @@ { lib, buildPythonPackage, + fetchpatch, fetchPypi, attrs, requests, + setuptools, }: buildPythonPackage rec { pname = "pyqwikswitch"; version = "0.94"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-IpyWz+3EMr0I+xULBJJhBgdnQHNPJIM1SqKFLpszhQc="; }; - propagatedBuildInputs = [ + patches = [ + # https://github.com/kellerza/pyqwikswitch/pull/7 + (fetchpatch { + name = "replace-async-timeout-with-asyncio.timeout.patch"; + url = "https://github.com/kellerza/pyqwikswitch/commit/7b3f2211962b30bb6beea9a4fe17cd04cdf8e27f.patch"; + hash = "sha256-sdO5jzIgKdneNY5dTngIzUFtyRg7HBGaZA1BBeAJxu4="; + }) + ]; + + build-system = [ setuptools ]; + + dependencies = [ attrs requests ]; From 86bbe05622d24dc060078139f330767142f837bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 2 Oct 2025 04:07:30 -0700 Subject: [PATCH 2/2] home-assistant: tests don't depend on qwikswitch component --- pkgs/servers/home-assistant/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 212e26c50b79..88712d93b1d4 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -490,7 +490,6 @@ python.pkgs.buildPythonApplication rec { # some components are needed even if tests in tests/components are disabled "default_config" "hue" - "qwikswitch" ]; pytestFlags = [