2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dask
|
|
|
|
, numpy, toolz # dask[array]
|
|
|
|
, scipy
|
|
|
|
, pims
|
|
|
|
, pytest
|
2020-08-20 17:08:02 +00:00
|
|
|
, pytest-flake8
|
2020-04-24 23:36:52 +00:00
|
|
|
, scikitimage
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dask-image";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "a6873a39af21b856a4eb7efee6838e6897b1399f21ab9e65403e69eb62f96c2d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
nativeBuildInputs = [ pytest-flake8 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ dask numpy toolz scipy pims ];
|
2020-08-20 17:08:02 +00: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-17 17:02:09 +00:00
|
|
|
pythonImportsCheck = [ "dask_image" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/dask/dask-image";
|
|
|
|
description = "Distributed image processing";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|