2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
cloudpickle,
|
|
|
|
dask,
|
|
|
|
fetchFromGitHub,
|
|
|
|
jinja2,
|
|
|
|
locket,
|
|
|
|
msgpack,
|
|
|
|
packaging,
|
|
|
|
psutil,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
pyyaml,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
sortedcontainers,
|
|
|
|
tblib,
|
|
|
|
toolz,
|
|
|
|
tornado,
|
|
|
|
urllib3,
|
|
|
|
versioneer,
|
|
|
|
zict,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "distributed";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2024.5.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "distributed";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-9W5BpBQHw1ZXCOWiFPeIlMns/Yys1gtdwQ4Lhd7qjK8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postPatch = ''
|
2023-05-24 13:37:59 +00:00
|
|
|
substituteInPlace pyproject.toml \
|
2023-10-09 19:29:22 +00:00
|
|
|
--replace "versioneer[toml]==" "versioneer[toml]>=" \
|
2023-05-24 13:37:59 +00:00
|
|
|
--replace 'dynamic = ["version"]' 'version = "${version}"'
|
2022-08-12 12:06:08 +00:00
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonRelaxDepsHook
|
2023-05-24 13:37:59 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
versioneer
|
2023-10-09 19:29:22 +00:00
|
|
|
] ++ versioneer.optional-dependencies.toml;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "dask" ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2021-07-04 02:40:35 +00:00
|
|
|
click
|
|
|
|
cloudpickle
|
|
|
|
dask
|
2022-06-26 10:26:21 +00:00
|
|
|
jinja2
|
|
|
|
locket
|
2021-07-04 02:40:35 +00:00
|
|
|
msgpack
|
2022-06-26 10:26:21 +00:00
|
|
|
packaging
|
2021-07-04 02:40:35 +00:00
|
|
|
psutil
|
|
|
|
pyyaml
|
|
|
|
sortedcontainers
|
|
|
|
tblib
|
|
|
|
toolz
|
|
|
|
tornado
|
2022-06-26 10:26:21 +00:00
|
|
|
urllib3
|
2021-07-04 02:40:35 +00:00
|
|
|
zict
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
# When tested random tests would fail and not repeatably
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
2021-07-04 02:40:35 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "distributed" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib; {
|
2021-07-04 02:40:35 +00:00
|
|
|
description = "Distributed computation in Python";
|
|
|
|
homepage = "https://distributed.readthedocs.io/";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/dask/distributed/blob/${version}/docs/source/changelog.rst";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ teh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|