depot/third_party/nixpkgs/pkgs/development/python-modules/distributed/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

71 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, click
, cloudpickle
, dask
, fetchPypi
, jinja2
, locket
, msgpack
, packaging
, psutil
, pythonOlder
, pyyaml
, sortedcontainers
, tblib
, toolz
, tornado
, urllib3
, zict
}:
buildPythonPackage rec {
pname = "distributed";
version = "2022.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-5oq6i+PiDl0RIKvKyEGQn/GAIXCKhBKvpY/xU8T6sKw=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "tornado >= 6.0.3, <6.2" "tornado >= 6.0.3"
'';
propagatedBuildInputs = [
click
cloudpickle
dask
jinja2
locket
msgpack
packaging
psutil
pyyaml
sortedcontainers
tblib
toolz
tornado
urllib3
zict
];
# When tested random tests would fail and not repeatably
doCheck = false;
pythonImportsCheck = [
"distributed"
];
meta = with lib; {
description = "Distributed computation in Python";
homepage = "https://distributed.readthedocs.io/";
license = licenses.bsd3;
platforms = platforms.x86; # fails on aarch64
maintainers = with maintainers; [ teh costrouc ];
};
}