From 4259684ed24ddaa8eead6018604b6e7d32df238a Mon Sep 17 00:00:00 2001 From: annalee <168274788+annaleeleaves@users.noreply.github.com> Date: Mon, 6 May 2024 09:59:30 +0000 Subject: [PATCH] python311Packages.astropy-healpix: relax numpy deps numpy>=2.0.0rc1 required for build-system. unfortunately, pythonRelaxDepsHook doesn't seem to prevent the check from failing so remove version manually from pyproject.toml --- pkgs/development/python-modules/astropy-healpix/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/astropy-healpix/default.nix b/pkgs/development/python-modules/astropy-healpix/default.nix index fa04d6595e8b..26be3405964c 100644 --- a/pkgs/development/python-modules/astropy-healpix/default.nix +++ b/pkgs/development/python-modules/astropy-healpix/default.nix @@ -23,8 +23,13 @@ buildPythonPackage rec { hash = "sha256-3l0qfsl7FnBFBmlx8loVDR5AYfBxWb4jZJY02zbnl0Y="; }; + postPatch = '' + substituteInPlace pyproject.toml --replace "numpy>=2.0.0rc1" "numpy" + ''; + nativeBuildInputs = [ astropy-extension-helpers + numpy setuptools setuptools-scm ];