about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2023-08-24 17:39:15 -0700
committerYt <happysalada@tuta.io>2023-08-26 03:20:07 +0800
commitd3ecc8f3ef7b4f9550218867f1c4bcc15845d126 (patch)
tree636ffe50909ee3848d43ea2042302f9dd06c8eb5
parent63ff0f7ca6cac5711e76c8d15b90ef736ab5adb7 (diff)
python310Packages.reproject: add missing build dependencies and relax constraints
-rw-r--r--pkgs/development/python-modules/reproject/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix
index 3baf811140f91..00060c08bc2ed 100644
--- a/pkgs/development/python-modules/reproject/default.nix
+++ b/pkgs/development/python-modules/reproject/default.nix
@@ -6,6 +6,7 @@
 , cython
 , fetchPypi
 , numpy
+, oldest-supported-numpy
 , pytest-astropy
 , pytestCheckHook
 , pythonOlder
@@ -25,9 +26,16 @@ buildPythonPackage rec {
     hash = "sha256-OKxPPKcVVrEVUGR8Zaphn7ur9HOuqQKa9gnMo2RQQME=";
   };
 
+  postPatch = ''
+    substituteInPlace pyproject.toml \
+      --replace "cython==" "cython>="
+  '';
+
   nativeBuildInputs = [
     astropy-extension-helpers
     cython
+    numpy
+    oldest-supported-numpy
     setuptools-scm
   ];