Skip to content

Commit

Permalink
python313Packages.rflink: fix compat with async-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Feb 5, 2025
1 parent 6d99151 commit c0167da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/python-modules/rflink/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down

0 comments on commit c0167da

Please sign in to comment.