3
0
Fork 0
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:
Ivan Mincik 2023-05-30 10:14:34 +02:00
parent 8e382a0c4c
commit 0f14e3bf19

View file

@ -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/";