From ac188eebf80a9e34993ca639444ca4b85a451bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 5 Mar 2026 17:38:09 -0800 Subject: [PATCH 1/3] Revert "python3Packages.pyqwikswitch: 0.94 -> 1.0.2" This reverts commit e0a4952d2c11c31c0472e3d511fc69827ee31c6e because it broke home-assistant.tests.components.qwikswitch. --- .../python-modules/pyqwikswitch/default.nix | 50 ++++++++----------- 1 file changed, 22 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/pyqwikswitch/default.nix b/pkgs/development/python-modules/pyqwikswitch/default.nix index 5f7ceb36511c..0a22ec145f06 100644 --- a/pkgs/development/python-modules/pyqwikswitch/default.nix +++ b/pkgs/development/python-modules/pyqwikswitch/default.nix @@ -1,56 +1,50 @@ { lib, buildPythonPackage, - fetchFromGitHub, + fetchpatch, + fetchPypi, attrs, - aiohttp, - uv-build, - aioresponses, - pytest-asyncio, - pytest-cov-stub, - pytestCheckHook, + requests, + setuptools, }: -buildPythonPackage (finalAttrs: { +buildPythonPackage rec { pname = "pyqwikswitch"; - version = "1.0.2"; + version = "0.94"; pyproject = true; - src = fetchFromGitHub { - owner = "kellerza"; - repo = "pyqwikswitch"; - tag = "v${finalAttrs.version}"; - hash = "sha256-yx3rCPVuhsemAtFuEhPvFPHOFm2UWrXmWF3d/ZtPGo8="; + src = fetchPypi { + inherit pname version; + hash = "sha256-IpyWz+3EMr0I+xULBJJhBgdnQHNPJIM1SqKFLpszhQc="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "uv-build>=0.8.20,<0.9" uv-build - ''; + 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 = [ uv-build ]; + build-system = [ setuptools ]; dependencies = [ - aiohttp attrs + requests ]; pythonImportsCheck = [ "pyqwikswitch" + "pyqwikswitch.threaded" ]; - nativeCheckInputs = [ - aioresponses - pytest-asyncio - pytest-cov-stub - pytestCheckHook - ]; + doCheck = false; # no tests in sdist meta = { - changelog = "https://github.com/kellerza/pyqwikswitch/blob/${finalAttrs.src.tag}/CHANGELOG.md"; description = "QwikSwitch USB Modem API binding for Python"; homepage = "https://github.com/kellerza/pyqwikswitch"; license = lib.licenses.mit; teams = [ lib.teams.home-assistant ]; }; -}) +} From 885318c44179af53f473306a7863298ae4008f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 5 Mar 2026 19:30:00 -0800 Subject: [PATCH 2/3] Revert "python3Packages.python-tado: 0.18.16 -> 0.19.2" This reverts commit bf53e79d907bff9a71828d704347cce25d0e30bb because it broke home-assistant.tests.components.tado. --- .../development/python-modules/python-tado/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/python-tado/default.nix b/pkgs/development/python-modules/python-tado/default.nix index 890dc22bd703..90cba957bc02 100644 --- a/pkgs/development/python-modules/python-tado/default.nix +++ b/pkgs/development/python-modules/python-tado/default.nix @@ -2,35 +2,33 @@ lib, buildPythonPackage, fetchFromGitHub, - poetry-core, pytest-cov-stub, pytest-mock, - pytest-socket, pytestCheckHook, requests, responses, + setuptools, }: buildPythonPackage (finalAttrs: { pname = "python-tado"; - version = "0.19.2"; + version = "0.18.16"; pyproject = true; src = fetchFromGitHub { owner = "wmalgadey"; repo = "PyTado"; tag = finalAttrs.version; - hash = "sha256-me62VPjKU+vh0vo4Fl86sEse1QZYD2zDpxchSiUcxTY="; + hash = "sha256-jHPTu0/DYJXbSqiJXQzmiK6gmtJf88Y0BV1wj/X+qpc="; }; - build-system = [ poetry-core ]; + build-system = [ setuptools ]; dependencies = [ requests ]; nativeCheckInputs = [ pytest-cov-stub pytest-mock - pytest-socket pytestCheckHook responses ]; From bb24bcd33dcdf3165e8fc7ea4e2ee1c3ebcc3db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 5 Mar 2026 19:30:36 -0800 Subject: [PATCH 3/3] Revert "python3Packages.python-telegram-bot: 22.5 -> 22.6" This reverts commit 526eb9c5c938b8c00755c24eda8bd80b344aff40 because it broke home-assistant.tests.components.telegram_bot. --- .../python-modules/python-telegram-bot/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-telegram-bot/default.nix b/pkgs/development/python-modules/python-telegram-bot/default.nix index 0b8ee9e6a532..fdefd6d4867a 100644 --- a/pkgs/development/python-modules/python-telegram-bot/default.nix +++ b/pkgs/development/python-modules/python-telegram-bot/default.nix @@ -23,14 +23,14 @@ buildPythonPackage rec { pname = "python-telegram-bot"; - version = "22.6"; + version = "22.5"; pyproject = true; src = fetchFromGitHub { owner = "python-telegram-bot"; repo = "python-telegram-bot"; tag = "v${version}"; - hash = "sha256-B7tG70Nzt7HKFD1n1Aq5DGGrcTyb4Df9LF31DGN4KQc="; + hash = "sha256-++vDura+7AkqM7gV12O2CRRQ1H7G5G22VHGo4OdyffU="; }; build-system = [