2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, click
|
|
|
|
, cloudpickle
|
|
|
|
, dask
|
|
|
|
, msgpack
|
|
|
|
, psutil
|
|
|
|
, sortedcontainers
|
|
|
|
, tblib
|
|
|
|
, toolz
|
|
|
|
, tornado
|
|
|
|
, zict
|
|
|
|
, pyyaml
|
|
|
|
, mpi4py
|
|
|
|
, bokeh
|
2020-09-25 04:45:31 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "distributed";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "2022.2.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# get full repository need conftest.py to run tests
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-05 16:20:37 +00:00
|
|
|
hash = "sha256-Gi9u7JczpnAEg53E7N5tXBfAeWZaLBVzRU3SpbU3bZU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-07-04 02:40:35 +00:00
|
|
|
bokeh
|
|
|
|
click
|
|
|
|
cloudpickle
|
|
|
|
dask
|
|
|
|
mpi4py
|
|
|
|
msgpack
|
|
|
|
psutil
|
|
|
|
pyyaml
|
|
|
|
sortedcontainers
|
|
|
|
tblib
|
|
|
|
toolz
|
|
|
|
tornado
|
|
|
|
zict
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "dask == 2022.02.0" "dask"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# when tested random tests would fail and not repeatably
|
|
|
|
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/";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.x86; # fails on aarch64
|
|
|
|
maintainers = with maintainers; [ teh costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|