python313Packages.rflink: fix compat with async-timeout

This commit is contained in:
Martin Weinelt
2025-02-06 18:55:48 +01:00
parent 36880c9a91
commit 12cefdea09
@@ -38,6 +38,10 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "version=version_from_git()" "version='${version}'"
substituteInPlace rflinkproxy/__main__.py --replace-fail \
"with async_timeout.timeout(CONNECTION_TIMEOUT):" \
"async with async_timeout.timeout(CONNECTION_TIMEOUT):"
'';
pythonImportsCheck = [ "rflink.protocol" ];