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-06-24 18:47:55 +00:00
|
|
|
version = "2024.6.2";
|
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-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-GgW9BtTqjac+olAGg+LOO+lTopuUukVUmQ0ZWsMJOc8=";
|
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 \
|
2024-06-24 18:47:55 +00:00
|
|
|
--replace-fail "versioneer[toml]==" "versioneer[toml]>=" \
|
|
|
|
--replace-fail '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
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ teh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|