2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-09-13 21:41:58 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, 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-11-29 14:04:26 +00:00
|
|
|
version = "0.4.0";
|
2018-09-13 21:41:58 +01:00
|
|
|
pname = "dask-image";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:26 +00:00
|
|
|
sha256 = "a6873a39af21b856a4eb7efee6838e6897b1399f21ab9e65403e69eb62f96c2d";
|
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/
|
|
|
|
'';
|
2021-02-15 22:49:08 +00:00
|
|
|
pythonImportsCheck = [ "dask_image" ];
|
2018-09-13 21:41:58 +01:00
|
|
|
|
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-image";
|
2018-09-13 21:41:58 +01:00
|
|
|
description = "Distributed image processing";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|