evcc: 0.131.8 -> 0.131.10 (#364658)
[NixPkgs.git] / pkgs / development / python-modules / dask-mpi / default.nix
blobf51dccdc0377d586d5f52c1b8f2c2cfd07928aec
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   fetchpatch,
6   dask,
7   distributed,
8   mpi4py,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "dask-mpi";
14   version = "2022.4.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.6";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-CgTx19NaBs3/UGWTMw1EFOokLJFySYzhkfV0LqxJnhc=";
22   };
24   patches = [
25     # https://github.com/dask/dask-mpi/pull/123
26     (fetchpatch {
27       name = "fix-versioneer-on-python312.patch";
28       url = "https://github.com/dask/dask-mpi/pull/123/commits/0f3b0286b7e29b5d5475561a148dc398108fc259.patch";
29       hash = "sha256-xXADCSIhq1ARny2twzrhR1J8LkMFWFl6tmGxrM8RvkU=";
30     })
31   ];
33   propagatedBuildInputs = [
34     dask
35     distributed
36     mpi4py
37   ];
39   # Hardcoded mpirun path in tests
40   doCheck = false;
42   pythonImportsCheck = [ "dask_mpi" ];
44   meta = with lib; {
45     description = "Deploy Dask using mpi4py";
46     mainProgram = "dask-mpi";
47     homepage = "https://github.com/dask/dask-mpi";
48     license = licenses.bsd3;
49     maintainers = [ ];
50   };