diff --git a/pkgs/development/python-modules/batchspawner/default.nix b/pkgs/development/python-modules/batchspawner/default.nix index 9e54f054e005..87c6aa2cafbf 100644 --- a/pkgs/development/python-modules/batchspawner/default.nix +++ b/pkgs/development/python-modules/batchspawner/default.nix @@ -6,6 +6,8 @@ , jinja2 , jupyterhub , pythonOlder +, pytest-asyncio +, pytestCheckHook }: buildPythonPackage rec { @@ -32,8 +34,15 @@ buildPythonPackage rec { jupyterhub ]; - # Tests require a job scheduler e.g. slurm, pbs, etc. - doCheck = false; + preCheck = '' + substituteInPlace pyproject.toml \ + --replace-fail "--cov=batchspawner" "" + ''; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; pythonImportsCheck = [ "batchspawner"