2019-02-07 21:06:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dask
|
|
|
|
, distributed
|
|
|
|
, mpi4py
|
|
|
|
, pytest
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-24 07:47:28 +01:00
|
|
|
version = "2.0.0";
|
2019-02-07 21:06:03 +00:00
|
|
|
pname = "dask-mpi";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:28 +01:00
|
|
|
sha256 = "774cd2d69e5f7154e1fa133c22498062edd31507ffa2ea19f4ab4d8975c27bc3";
|
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;
|
|
|
|
|
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|