31 rasterio, # required to run version test
34 buildPythonPackage rec {
39 disabled = pythonOlder "3.8";
41 src = fetchFromGitHub {
44 rev = "refs/tags/${version}";
45 hash = "sha256-YGSd0IG6TWnHmDiVEE3F2KNQ4dXJhkPqAJsIrWyuHos=";
49 # relax numpy dependency
50 substituteInPlace pyproject.toml \
51 --replace-fail "numpy>=2" "numpy"
62 propagatedBuildInputs = [
73 optional-dependencies = {
74 ipython = [ ipython ];
75 plot = [ matplotlib ];
90 rm -r rasterio # prevent importing local rasterio
93 pytestFlagsArray = [ "-m 'not network'" ];
97 "test_outer_boundless_pixel_fidelity"
100 "test_opener_fsspec_http_fs"
101 "test_fsspec_http_msk_sidecar"
102 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_reproject_error_propagation" ];
104 pythonImportsCheck = [ "rasterio" ];
106 passthru.tests.version = testers.testVersion {
109 command = "${rasterio}/bin/rio --version";
113 description = "Python package to read and write geospatial raster data";
115 homepage = "https://rasterio.readthedocs.io/";
116 changelog = "https://github.com/rasterio/rasterio/blob/${version}/CHANGES.txt";
117 license = licenses.bsd3;
118 maintainers = teams.geospatial.members;