2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
dask,
|
|
|
|
distributed,
|
|
|
|
docrep,
|
|
|
|
fetchPypi,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-jobqueue";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.8.5";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# Python 3.12 support should be added in 0.8.6
|
|
|
|
disabled = pythonOlder "3.8" || pythonAtLeast "3.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-9pI/nX/4lLlu+/cGEYss03/Td1HVZ+kcIt/T4uqpMgI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-07 14:46:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dask
|
|
|
|
distributed
|
|
|
|
docrep
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
cryptography
|
2021-10-07 14:46:35 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2022-10-21 18:38:19 +00:00
|
|
|
# Tests have additional requirements (e.g., sge, etc.)
|
|
|
|
"test_adapt_parameters"
|
|
|
|
"test_adapt"
|
|
|
|
"test_adaptive_cores_mem"
|
|
|
|
"test_adaptive_grouped"
|
|
|
|
"test_adaptive"
|
|
|
|
"test_basic"
|
|
|
|
"test_basic_scale_edge_cases"
|
|
|
|
"test_cluster_error_scheduler_arguments_should_use_scheduler_options"
|
|
|
|
"test_cluster_has_cores_and_memory"
|
|
|
|
"test_cluster"
|
|
|
|
"test_command_template"
|
|
|
|
"test_complex_cancel_command"
|
|
|
|
"test_config"
|
|
|
|
"test_dashboard_link"
|
|
|
|
"test_default_number_of_worker_processes"
|
|
|
|
"test_deprecation_env_extra"
|
|
|
|
"test_deprecation_extra"
|
|
|
|
"test_deprecation_job_extra"
|
|
|
|
"test_different_interfaces_on_scheduler_and_workers"
|
|
|
|
"test_docstring_cluster"
|
|
|
|
"test_extra_args_broken_cancel"
|
|
|
|
"test_forward_ip"
|
2021-10-07 14:46:35 +00:00
|
|
|
"test_import_scheduler_options_from_config"
|
2022-10-21 18:38:19 +00:00
|
|
|
"test_job"
|
|
|
|
"test_log_directory"
|
|
|
|
"test_scale_cores_memory"
|
|
|
|
"test_scale_grouped"
|
|
|
|
"test_scheduler_options_interface"
|
|
|
|
"test_scheduler_options"
|
2021-10-07 14:46:35 +00:00
|
|
|
"test_security"
|
2022-10-21 18:38:19 +00:00
|
|
|
"test_shebang_settings"
|
|
|
|
"test_use_stdin"
|
|
|
|
"test_worker_name_uses_cluster_name"
|
|
|
|
"test_wrong_parameter_error"
|
2021-10-07 14:46:35 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dask_jobqueue" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Deploy Dask on job schedulers like PBS, SLURM, and SGE";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/dask/dask-jobqueue";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|