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