From 811733318de8a4f7e9f853c5012cb770e0bc891d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 12 Oct 2025 21:48:03 -0700 Subject: [PATCH] python3Packages.python-roborock: replace async-timeout with asyncio.timeout --- .../python-modules/python-roborock/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-roborock/default.nix b/pkgs/development/python-modules/python-roborock/default.nix index fc5bb111b935..fd7e9c688a4c 100644 --- a/pkgs/development/python-modules/python-roborock/default.nix +++ b/pkgs/development/python-modules/python-roborock/default.nix @@ -4,12 +4,12 @@ aiohttp, aiomqtt, aioresponses, - async-timeout, buildPythonPackage, click, construct, dacite, fetchFromGitHub, + fetchpatch, freezegun, paho-mqtt, poetry-core, @@ -40,6 +40,16 @@ buildPythonPackage rec { hash = "sha256-66kSNkivq6BHnqIqx1INtdoysBJfCqV76yIAJiHmfxQ="; }; + patches = [ + # https://github.com/Python-roborock/python-roborock/pull/527 + (fetchpatch { + name = "replace async-timeout with asyncio.timeout.patch"; + url = "https://github.com/Python-roborock/python-roborock/commit/f376027f5933e163441cf1815b820056731a3632.patch"; + excludes = [ "poetry.lock" ]; + hash = "sha256-53xsQ3yxh9CilC9hNS31rDXZVFG+mMhe7ffOb4L6bUE="; + }) + ]; + postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "poetry-core==1.8.0" "poetry-core" @@ -52,7 +62,6 @@ buildPythonPackage rec { dependencies = [ aiohttp aiomqtt - async-timeout click construct dacite