diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-08-07 14:45:29 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-08-08 17:07:52 -0700 |
commit | c25667141155e75db9b345756e6aab33a3244885 (patch) | |
tree | 7320ec469361e9c1534c8043927f414d3f311446 /pkgs/development/python-modules/dask-image | |
parent | 4d83f4510a58b7c0f37e33a8709999db455a07c2 (diff) |
python3Packages.dask-image: 0.2.0 -> 0.3.0
Diffstat (limited to 'pkgs/development/python-modules/dask-image')
-rw-r--r-- | pkgs/development/python-modules/dask-image/default.nix | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/dask-image/default.nix b/pkgs/development/python-modules/dask-image/default.nix index 48a6a73af6766..f119cf2b0b8be 100644 --- a/pkgs/development/python-modules/dask-image/default.nix +++ b/pkgs/development/python-modules/dask-image/default.nix @@ -1,25 +1,43 @@ { stdenv , buildPythonPackage , fetchPypi +, fetchpatch , dask , numpy, toolz # dask[array] , scipy , pims , pytest +, pytest-flake8 , scikitimage }: buildPythonPackage rec { - version = "0.2.0"; + version = "0.3.0"; pname = "dask-image"; src = fetchPypi { inherit pname version; - sha256 = "bece2ea347f963dc0168c7d5fdfd11e51b47d9c857d3bc56144d7c146964a23f"; + sha256 = "15svy8y57i30878pijyd0pxn10bnk7ffmmgwva5rpip4b7grsgv0"; }; - checkInputs = [ pytest scikitimage ]; + nativeBuildInputs = [ pytest-flake8 ]; propagatedBuildInputs = [ dask numpy toolz scipy pims ]; + 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/ + ''; meta = with stdenv.lib; { homepage = "https://github.com/dask/dask-image"; |