diff --git a/pkgs/development/python-modules/ipython/default.nix b/pkgs/development/python-modules/ipython/default.nix index ecb26f25474d..7dacc7e2aa3c 100644 --- a/pkgs/development/python-modules/ipython/default.nix +++ b/pkgs/development/python-modules/ipython/default.nix @@ -23,6 +23,7 @@ , pickleshare , pytest-asyncio , pytestCheckHook +, pytest_7 , testpath }: @@ -71,7 +72,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pickleshare pytest-asyncio - pytestCheckHook + (pytestCheckHook.override { pytest = pytest_7; }) testpath ];