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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user