mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
python38Packages.dask-image switch to pytestCheckHook (#122101)
This commit is contained in:
parent
080cd658ca
commit
dcd94626c0
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user