diff --git a/pkgs/development/python-modules/dask-image/default.nix b/pkgs/development/python-modules/dask-image/default.nix index a38350f0f6a..38d113eee70 100644 --- a/pkgs/development/python-modules/dask-image/default.nix +++ b/pkgs/development/python-modules/dask-image/default.nix @@ -2,12 +2,10 @@ , buildPythonPackage , fetchPypi , dask -, numpy, toolz # dask[array] , scipy , pims -, pytest -, pytest-flake8 , scikitimage +, pytestCheckHook }: buildPythonPackage rec { @@ -19,24 +17,17 @@ buildPythonPackage rec { sha256 = "0bf7ea8dcd9d795505b498bd632394720c048f50761e23c574d9a6bacfb27cbb"; }; - nativeBuildInputs = [ pytest-flake8 ]; - propagatedBuildInputs = [ dask numpy toolz scipy pims ]; + propagatedBuildInputs = [ dask scipy pims ]; + + prePatch = '' + substituteInPlace setup.cfg --replace "--flake8" "" + ''; + checkInputs = [ - pytest + pytestCheckHook 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/ - ''; pythonImportsCheck = [ "dask_image" ]; meta = with lib; {