nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, click
5, cloudpickle
6, dask
7, msgpack
8, psutil
9, sortedcontainers
10, tblib
11, toolz
12, tornado
13, zict
14, pyyaml
15, mpi4py
16, bokeh
17, pythonOlder
18}:
19
20buildPythonPackage rec {
21 pname = "distributed";
22 version = "2022.2.1";
23 format = "setuptools";
24
25 disabled = pythonOlder "3.7";
26
27 # get full repository need conftest.py to run tests
28 src = fetchPypi {
29 inherit pname version;
30 hash = "sha256-+2KnWvjvM7vhqoCmjAGjOpPBzVozLdAXq0SVW/fs9ls=";
31 };
32
33 propagatedBuildInputs = [
34 bokeh
35 click
36 cloudpickle
37 dask
38 mpi4py
39 msgpack
40 psutil
41 pyyaml
42 sortedcontainers
43 tblib
44 toolz
45 tornado
46 zict
47 ];
48
49 postPatch = ''
50 substituteInPlace requirements.txt \
51 --replace "dask == 2022.02.0" "dask"
52 '';
53
54 # when tested random tests would fail and not repeatably
55 doCheck = false;
56
57 pythonImportsCheck = [
58 "distributed"
59 ];
60
61 meta = with lib; {
62 description = "Distributed computation in Python";
63 homepage = "https://distributed.readthedocs.io/";
64 license = licenses.bsd3;
65 platforms = platforms.x86; # fails on aarch64
66 maintainers = with maintainers; [ teh costrouc ];
67 };
68}