python3Packages.python-roborock: replace async-timeout with asyncio.timeout

This commit is contained in:
Robert Schütz
2025-10-12 21:48:03 -07:00
parent 72229b769b
commit 811733318d

View File

@@ -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