diff --git a/pkgs/development/python-modules/rasterio/default.nix b/pkgs/development/python-modules/rasterio/default.nix index 47ef8ed31560..9fc55c214146 100644 --- a/pkgs/development/python-modules/rasterio/default.nix +++ b/pkgs/development/python-modules/rasterio/default.nix @@ -45,6 +45,11 @@ buildPythonPackage rec { hash = "sha256-InejYBRa4i0E2GxEWbtBpaErtcoYrhtypAlRtMlUoDk="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "cython~=3.0.2" cython + ''; + nativeBuildInputs = [ cython gdal