From 38fcb28228591fcf24778cf55aee24485ea11f00 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 19 Aug 2023 09:51:14 -0700 Subject: [PATCH] python3.pkgs.astropy: fix build dependencies --- pkgs/development/python-modules/astropy/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index a222dbe92eca..2176a6ff1fc3 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -5,10 +5,11 @@ # build time , astropy-extension-helpers -, astropy-helpers , cython , jinja2 +, oldest-supported-numpy , setuptools-scm +, wheel # runtime , numpy @@ -32,14 +33,18 @@ buildPythonPackage { hash = "sha256-9q4noHf46oSQPvp2x5C5hWFzQaAISw0hw5H3o/MyrCM="; }; - SETUPTOOLS_SCM_PRETEND_VERSION = version; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'cython==' 'cython>=' + ''; nativeBuildInputs = [ astropy-extension-helpers - astropy-helpers cython jinja2 + oldest-supported-numpy setuptools-scm + wheel ]; propagatedBuildInputs = [