From de17467f58f47b3a7f58e641a0fc025bd871d3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 3 Mar 2026 19:22:49 -0800 Subject: [PATCH] python314Packages.aiohttp-cors: fix tests --- .../python-modules/aiohttp-cors/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/aiohttp-cors/default.nix b/pkgs/development/python-modules/aiohttp-cors/default.nix index 083b1a513063..f2f17e78a805 100644 --- a/pkgs/development/python-modules/aiohttp-cors/default.nix +++ b/pkgs/development/python-modules/aiohttp-cors/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, aiohttp, pytestCheckHook, pytest-aiohttp, @@ -20,6 +21,15 @@ buildPythonPackage rec { hash = "sha256-AbMuUeCNM8+oZj/hutG3zxHOwYN8uZlLFBeYTlu1fh4="; }; + patches = [ + # https://github.com/aio-libs/aiohttp-cors/pull/563 + (fetchpatch { + name = "replace-deprecated-asyncio.iscoroutinefunction-with-its-counterpart-from-inspect.patch"; + url = "https://github.com/aio-libs/aiohttp-cors/commit/efafc0f780a494377910f2328057f83e95f8bf74.patch"; + hash = "sha256-BvE5qqAx83+084khkHt4zjXgR7Bu/ceqMOOh/6fe5TA="; + }) + ]; + build-system = [ setuptools ]; dependencies = [ aiohttp ];