diff --git a/pkgs/development/python-modules/batchspawner/default.nix b/pkgs/development/python-modules/batchspawner/default.nix index c9499f7c3473..b3320cc775f3 100644 --- a/pkgs/development/python-modules/batchspawner/default.nix +++ b/pkgs/development/python-modules/batchspawner/default.nix @@ -8,6 +8,7 @@ jupyterhub, pythonOlder, pytest-asyncio, + pytest-cov-stub, pytestCheckHook, }: @@ -35,13 +36,9 @@ buildPythonPackage rec { jupyterhub ]; - preCheck = '' - substituteInPlace pyproject.toml \ - --replace-fail "--cov=batchspawner" "" - ''; - nativeCheckInputs = [ pytest-asyncio + pytest-cov-stub pytestCheckHook ];