python314Packages.aioresponses: fix DeprecationWarning

The tests of e.g. aiohasupervisor previously failed with

    DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
This commit is contained in:
Robert Schütz
2026-03-03 19:18:30 -08:00
parent c4b0401802
commit 16a3ce8d1b
@@ -25,6 +25,12 @@ buildPythonPackage rec {
hash = "sha256-uGHN/l3FjzuK+sewppc9XXsstgjdD2JT0WuO6Or23xE=";
};
postPatch = ''
# https://github.com/pnuckowski/aioresponses/pull/278
substituteInPlace aioresponses/core.py \
--replace-fail asyncio.iscoroutinefunction inspect.iscoroutinefunction
'';
nativeBuildInputs = [
pbr
setuptools