From 16a3ce8d1b40b3b873d071fa052da4009cf729d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 3 Mar 2026 19:18:30 -0800 Subject: [PATCH] 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 --- pkgs/development/python-modules/aioresponses/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/aioresponses/default.nix b/pkgs/development/python-modules/aioresponses/default.nix index 73c1e562bf23..e3ec08c122ce 100644 --- a/pkgs/development/python-modules/aioresponses/default.nix +++ b/pkgs/development/python-modules/aioresponses/default.nix @@ -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