02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
57 lines
1 KiB
Nix
57 lines
1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, dask
|
|
, distributed
|
|
, docrep
|
|
, fetchPypi
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dask-jobqueue";
|
|
version = "0.7.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-XoQwazgJuFvhoEezhhGu2YvIp+VFAe7dhGIEVnuQ5kM=";
|
|
};
|
|
|
|
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"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dask_jobqueue"
|
|
];
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
description = "Deploy Dask on job schedulers like PBS, SLURM, and SGE";
|
|
homepage = "https://github.com/dask/dask-jobqueue";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|