2019-02-07 22:06:03 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dask
|
|
|
|
, distributed
|
|
|
|
, mpi4py
|
|
|
|
, pytest
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-24 08:47:28 +02:00
|
|
|
version = "2.0.0";
|
2019-02-07 22:06:03 +01:00
|
|
|
pname = "dask-mpi";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 08:47:28 +02:00
|
|
|
sha256 = "774cd2d69e5f7154e1fa133c22498062edd31507ffa2ea19f4ab4d8975c27bc3";
|
2019-02-07 22:06:03 +01: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 03:11:51 +02:00
|
|
|
homepage = "https://github.com/dask/dask-mpi";
|
2019-02-07 22:06:03 +01:00
|
|
|
description = "Deploy Dask using mpi4py";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|