mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 14:08:04 +00:00
Merge pull request #234961 from imincik/rasterio-fix-tests
python3Packages.rasterio: fix execution of Python test suite
This commit is contained in:
commit
f4fa8f7a3c
@ -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 New Issue
Block a user