2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, cloudpickle
|
|
|
|
, dask
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchFromGitHub
|
2022-06-26 10:26:21 +00:00
|
|
|
, jinja2
|
|
|
|
, locket
|
2020-04-24 23:36:52 +00:00
|
|
|
, msgpack
|
2022-06-26 10:26:21 +00:00
|
|
|
, packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
, psutil
|
2022-06-26 10:26:21 +00:00
|
|
|
, pythonOlder
|
2024-01-13 08:15:51 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-06-26 10:26:21 +00:00
|
|
|
, pyyaml
|
2023-05-24 13:37:59 +00:00
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, sortedcontainers
|
|
|
|
, tblib
|
|
|
|
, toolz
|
|
|
|
, tornado
|
2022-06-26 10:26:21 +00:00
|
|
|
, urllib3
|
2023-05-24 13:37:59 +00:00
|
|
|
, versioneer
|
2020-04-24 23:36:52 +00:00
|
|
|
, zict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "distributed";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2023.12.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-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-Zv31BTzY31eXkU7wqa+h33qGrH+OTzKEj6L7Ei/aizk=";
|
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
|
|
|
'';
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
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-01-13 08:15:51 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"dask"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
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
|
|
|
|
2022-03-05 16:20:37 +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
|
|
|
};
|
|
|
|
}
|