forked from mirrors/nixpkgs
python3Packages.rasterio: fix execution of Python test suite
Remove installCheckPhase which was preventing rasterio Python test suite to run.
This commit is contained in:
parent
8e382a0c4c
commit
0f14e3bf19
|
@ -68,6 +68,7 @@ buildPythonPackage rec {
|
|||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
boto3
|
||||
hypothesis
|
||||
packaging
|
||||
pytest-randomly
|
||||
|
@ -75,6 +76,12 @@ buildPythonPackage rec {
|
|||
shapely
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
preCheck = ''
|
||||
rm -r rasterio # prevent importing local rasterio
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-m 'not network'"
|
||||
];
|
||||
|
@ -87,15 +94,6 @@ buildPythonPackage rec {
|
|||
"rasterio"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
installCheckPhase = ''
|
||||
$out/bin/rio --show-versions | grep -E "rasterio:\s${version}" > /dev/null
|
||||
$out/bin/rio --show-versions | grep -E "GDAL:\s[0-9]+(\.[0-9]+)*" > /dev/null
|
||||
$out/bin/rio --show-versions | grep -E "PROJ:\s[0-9]+(\.[0-9]+)*" > /dev/null
|
||||
$out/bin/rio --show-versions | grep -E "GEOS:\s[0-9]+(\.[0-9]+)*" > /dev/null
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python package to read and write geospatial raster data";
|
||||
homepage = "https://rasterio.readthedocs.io/";
|
||||
|
|
Loading…
Reference in a new issue