2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-02-07 21:06:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dask
|
|
|
|
, distributed
|
|
|
|
, mpi4py
|
|
|
|
, pytest
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-08-16 18:30:56 +01:00
|
|
|
version = "2.21.0";
|
2019-02-07 21:06:03 +00:00
|
|
|
pname = "dask-mpi";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:30:56 +01:00
|
|
|
sha256 = "76e153fc8c58047d898970b33ede0ab1990bd4e69cc130c6627a96f11b12a1a7";
|
2019-02-07 21:06:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest requests ];
|
|
|
|
propagatedBuildInputs = [ dask distributed mpi4py ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test dask_mpi
|
|
|
|
'';
|
|
|
|
|
|
|
|
# hardcoded mpirun path in tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dask/dask-mpi";
|
2019-02-07 21:06:03 +00:00
|
|
|
description = "Deploy Dask using mpi4py";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|