1{ lib 2, buildPythonPackage 3, click 4, cloudpickle 5, dask 6, fetchPypi 7, jinja2 8, locket 9, msgpack 10, packaging 11, psutil 12, pythonOlder 13, pyyaml 14, sortedcontainers 15, tblib 16, toolz 17, tornado 18, urllib3 19, zict 20}: 21 22buildPythonPackage rec { 23 pname = "distributed"; 24 version = "2022.10.2"; 25 format = "setuptools"; 26 27 disabled = pythonOlder "3.7"; 28 29 src = fetchPypi { 30 inherit pname version; 31 hash = "sha256-U/Clv276uaWrM0XNkT9tPz1OpETuLtvqMxx/75b9Z9A="; 32 }; 33 34 postPatch = '' 35 substituteInPlace requirements.txt \ 36 --replace "tornado >= 6.0.3, <6.2" "tornado >= 6.0.3" 37 ''; 38 39 propagatedBuildInputs = [ 40 click 41 cloudpickle 42 dask 43 jinja2 44 locket 45 msgpack 46 packaging 47 psutil 48 pyyaml 49 sortedcontainers 50 tblib 51 toolz 52 tornado 53 urllib3 54 zict 55 ]; 56 57 # When tested random tests would fail and not repeatably 58 doCheck = false; 59 60 pythonImportsCheck = [ 61 "distributed" 62 ]; 63 64 meta = with lib; { 65 description = "Distributed computation in Python"; 66 homepage = "https://distributed.readthedocs.io/"; 67 license = licenses.bsd3; 68 platforms = platforms.x86; # fails on aarch64 69 maintainers = with maintainers; [ teh costrouc ]; 70 }; 71}