python38Packages.dask-image switch to pytestCheckHook (#122101)

This commit is contained in:
evalexpr 2021-05-08 10:54:01 +01:00 committed by GitHub
parent 080cd658ca
commit dcd94626c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,12 +2,10 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, dask , dask
, numpy, toolz # dask[array]
, scipy , scipy
, pims , pims
, pytest
, pytest-flake8
, scikitimage , scikitimage
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -19,24 +17,17 @@ buildPythonPackage rec {
sha256 = "0bf7ea8dcd9d795505b498bd632394720c048f50761e23c574d9a6bacfb27cbb"; sha256 = "0bf7ea8dcd9d795505b498bd632394720c048f50761e23c574d9a6bacfb27cbb";
}; };
nativeBuildInputs = [ pytest-flake8 ]; propagatedBuildInputs = [ dask scipy pims ];
propagatedBuildInputs = [ dask numpy toolz scipy pims ];
prePatch = ''
substituteInPlace setup.cfg --replace "--flake8" ""
'';
checkInputs = [ checkInputs = [
pytest pytestCheckHook
scikitimage 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" ]; pythonImportsCheck = [ "dask_image" ];
meta = with lib; { meta = with lib; {