diff --git a/pkgs/development/python-modules/dask-jobqueue/default.nix b/pkgs/development/python-modules/dask-jobqueue/default.nix index 5e43a8f16648..7a14fbd57796 100644 --- a/pkgs/development/python-modules/dask-jobqueue/default.nix +++ b/pkgs/development/python-modules/dask-jobqueue/default.nix @@ -1,10 +1,11 @@ { lib , buildPythonPackage -, fetchPypi , dask , distributed , docrep -, pytest +, fetchPypi +, pytest-asyncio +, pytestCheckHook }: buildPythonPackage rec { @@ -16,19 +17,33 @@ buildPythonPackage rec { sha256 = "682d7cc0e6b319b6ab83a7a898680c12e9c77ddc77df380b40041290f55d4e79"; }; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ dask distributed docrep ]; + propagatedBuildInputs = [ + dask + distributed + docrep + ]; - # do not run entire tests suite (requires slurm, sge, etc.) - checkPhase = '' - py.test dask_jobqueue/tests/test_jobqueue_core.py - ''; + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pytestFlagsArray = [ + # Do not run entire tests suite (requires slurm, sge, etc.) + "dask_jobqueue/tests/test_jobqueue_core.py" + ]; + + disabledTests = [ + "test_import_scheduler_options_from_config" + "test_security" + ]; + + pythonImportsCheck = [ "dask_jobqueue" ]; meta = with lib; { homepage = "https://github.com/dask/dask-jobqueue"; description = "Deploy Dask on job schedulers like PBS, SLURM, and SGE"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; - broken = true; + maintainers = with maintainers; [ costrouc ]; }; }