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
|
|
|
|
, 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
|
|
|
|
, wheel
|
2020-04-24 23:36:52 +00:00
|
|
|
, zict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "distributed";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2023.4.1";
|
|
|
|
format = "pyproject";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-KCgftu3i8N0WSelHiqWqa1vLN5gUtleftSUx1Zu4nZg=";
|
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 \
|
|
|
|
--replace 'dynamic = ["version"]' 'version = "${version}"'
|
2022-08-12 12:06:08 +00:00
|
|
|
'';
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
versioneer
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|