diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-10-07 09:11:49 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-10-07 09:11:49 +0200 |
commit | 4c5d2704f1096e70c344b81b86f79de0947d6b70 (patch) | |
tree | 33e4ca6f25d588c4d3ae8af0dfda3a68ff4f638a | |
parent | 5791d8184f1ba7d641bae730e15be5d0990bf934 (diff) | |
download | nixpkgs-4c5d2704f1096e70c344b81b86f79de0947d6b70.tar nixpkgs-4c5d2704f1096e70c344b81b86f79de0947d6b70.tar.gz nixpkgs-4c5d2704f1096e70c344b81b86f79de0947d6b70.tar.bz2 nixpkgs-4c5d2704f1096e70c344b81b86f79de0947d6b70.tar.lz nixpkgs-4c5d2704f1096e70c344b81b86f79de0947d6b70.tar.xz nixpkgs-4c5d2704f1096e70c344b81b86f79de0947d6b70.tar.zst nixpkgs-4c5d2704f1096e70c344b81b86f79de0947d6b70.zip |
python3Packages.dask-jobqueue: fix build
-rw-r--r-- | pkgs/development/python-modules/dask-jobqueue/default.nix | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/dask-jobqueue/default.nix b/pkgs/development/python-modules/dask-jobqueue/default.nix index 5e43a8f1664..7a14fbd5779 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 + ]; + + 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" + ]; - # do not run entire tests suite (requires slurm, sge, etc.) - checkPhase = '' - py.test dask_jobqueue/tests/test_jobqueue_core.py - ''; + 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 ]; }; } |