2018-09-13 21:41:58 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-07 22:45:29 +01:00
|
|
|
, fetchpatch
|
2018-09-13 21:41:58 +01:00
|
|
|
, dask
|
|
|
|
, numpy, toolz # dask[array]
|
|
|
|
, scipy
|
|
|
|
, pims
|
|
|
|
, pytest
|
2020-08-07 22:45:29 +01:00
|
|
|
, pytest-flake8
|
2018-09-13 21:41:58 +01:00
|
|
|
, scikitimage
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-08-07 22:45:29 +01:00
|
|
|
version = "0.3.0";
|
2018-09-13 21:41:58 +01:00
|
|
|
pname = "dask-image";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-07 22:45:29 +01:00
|
|
|
sha256 = "15svy8y57i30878pijyd0pxn10bnk7ffmmgwva5rpip4b7grsgv0";
|
2018-09-13 21:41:58 +01:00
|
|
|
};
|
|
|
|
|
2020-08-07 22:45:29 +01:00
|
|
|
nativeBuildInputs = [ pytest-flake8 ];
|
2018-09-13 21:41:58 +01:00
|
|
|
propagatedBuildInputs = [ dask numpy toolz scipy pims ];
|
2020-08-07 22:45:29 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
scikitimage
|
|
|
|
];
|
|
|
|
|
|
|
|
# ignore errors from newer versions of flake8
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "docs/conf.py,versioneer.py" \
|
|
|
|
"docs/conf.py,versioneer.py,dask_image/ndfilters/_utils.py"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# scikit.external is not exported
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --ignore=tests/test_dask_image/
|
|
|
|
'';
|
2018-09-13 21:41:58 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dask/dask-image";
|
2018-09-13 21:41:58 +01:00
|
|
|
description = "Distributed image processing";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|