Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 48 lines 1.0 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, dask 6, numpy, toolz # dask[array] 7, scipy 8, pims 9, pytest 10, pytest-flake8 11, scikitimage 12}: 13 14buildPythonPackage rec { 15 version = "0.3.0"; 16 pname = "dask-image"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "15svy8y57i30878pijyd0pxn10bnk7ffmmgwva5rpip4b7grsgv0"; 21 }; 22 23 nativeBuildInputs = [ pytest-flake8 ]; 24 propagatedBuildInputs = [ dask numpy toolz scipy pims ]; 25 checkInputs = [ 26 pytest 27 scikitimage 28 ]; 29 30 # ignore errors from newer versions of flake8 31 prePatch = '' 32 substituteInPlace setup.cfg \ 33 --replace "docs/conf.py,versioneer.py" \ 34 "docs/conf.py,versioneer.py,dask_image/ndfilters/_utils.py" 35 ''; 36 37 # scikit.external is not exported 38 checkPhase = '' 39 pytest --ignore=tests/test_dask_image/ 40 ''; 41 42 meta = with stdenv.lib; { 43 homepage = "https://github.com/dask/dask-image"; 44 description = "Distributed image processing"; 45 license = licenses.bsdOriginal; 46 maintainers = [ maintainers.costrouc ]; 47 }; 48}