From 352852879ea1d6441e975052cc01e00d11f60a5c Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Tue, 22 Aug 2023 00:31:36 -0700 Subject: [PATCH] python3.pkgs.fiona: relax build dependencies --- pkgs/development/python-modules/fiona/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/fiona/default.nix b/pkgs/development/python-modules/fiona/default.nix index edbd9433fb09..1fe53065d9ee 100644 --- a/pkgs/development/python-modules/fiona/default.nix +++ b/pkgs/development/python-modules/fiona/default.nix @@ -5,6 +5,7 @@ , cython , gdal , setuptools +, wheel , attrs , certifi , click @@ -31,10 +32,20 @@ buildPythonPackage rec { hash = "sha256-CeGdWAmWteVtL0BoBQ1sB/+1AWkmxogtK99bL5Fpdbw="; }; + postPatch = '' + # Remove after https://github.com/Toblerity/Fiona/pull/1225 is released + sed -i '/"oldest-supported-numpy"/d' pyproject.toml + + # Remove after https://github.com/Toblerity/Fiona/pull/1281 is released, + # after which cython also needs to be updated to cython_3 + sed -i 's/Cython~=/Cython>=/' pyproject.toml + ''; + nativeBuildInputs = [ cython gdal # for gdal-config setuptools + wheel ]; buildInputs = [