about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dask-mpi/default.nix
blob: f51dccdc0377d586d5f52c1b8f2c2cfd07928aec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchpatch,
  dask,
  distributed,
  mpi4py,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "dask-mpi";
  version = "2022.4.0";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-CgTx19NaBs3/UGWTMw1EFOokLJFySYzhkfV0LqxJnhc=";
  };

  patches = [
    # https://github.com/dask/dask-mpi/pull/123
    (fetchpatch {
      name = "fix-versioneer-on-python312.patch";
      url = "https://github.com/dask/dask-mpi/pull/123/commits/0f3b0286b7e29b5d5475561a148dc398108fc259.patch";
      hash = "sha256-xXADCSIhq1ARny2twzrhR1J8LkMFWFl6tmGxrM8RvkU=";
    })
  ];

  propagatedBuildInputs = [
    dask
    distributed
    mpi4py
  ];

  # Hardcoded mpirun path in tests
  doCheck = false;

  pythonImportsCheck = [ "dask_mpi" ];

  meta = with lib; {
    description = "Deploy Dask using mpi4py";
    mainProgram = "dask-mpi";
    homepage = "https://github.com/dask/dask-mpi";
    license = licenses.bsd3;
    maintainers = [ ];
  };
}