diff --git a/pkgs/development/python-modules/aiohttp-sse/default.nix b/pkgs/development/python-modules/aiohttp-sse/default.nix index ec7f64216c64..2db3993b8f7f 100644 --- a/pkgs/development/python-modules/aiohttp-sse/default.nix +++ b/pkgs/development/python-modules/aiohttp-sse/default.nix @@ -2,9 +2,9 @@ aiohttp, buildPythonPackage, fetchFromGitHub, + fetchpatch, lib, pytest-aiohttp, - pytest-asyncio_0, pytest-cov-stub, pytestCheckHook, setuptools, @@ -22,6 +22,14 @@ buildPythonPackage rec { hash = "sha256-iCjWuECUQukCtlQPjztEwawqSzd3LvvWRGXnhZem22w="; }; + patches = [ + (fetchpatch { + name = "pytest-asyncio-compat.patch"; + url = "https://github.com/aio-libs/aiohttp-sse/commit/22c8041f5f737f76bdba2f2fded58abacf04c913.patch"; + hash = "sha256-CZjXgDKbm3XmS0tn3MGZMnZ84ZLt4o6v9boAYXYa6A4="; + }) + ]; + build-system = [ setuptools ]; dependencies = [ @@ -31,8 +39,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "aiohttp_sse" ]; nativeCheckInputs = [ - (pytest-aiohttp.override { pytest-asyncio = pytest-asyncio_0; }) - pytest-asyncio_0 + pytest-aiohttp pytest-cov-stub pytestCheckHook ];