diff options
Diffstat (limited to 'pkgs/development/python-modules/astropy-healpix/default.nix')
-rw-r--r-- | pkgs/development/python-modules/astropy-healpix/default.nix | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/astropy-healpix/default.nix b/pkgs/development/python-modules/astropy-healpix/default.nix index fa04d6595e8bf..e65d0d2222854 100644 --- a/pkgs/development/python-modules/astropy-healpix/default.nix +++ b/pkgs/development/python-modules/astropy-healpix/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, numpy -, astropy -, astropy-extension-helpers -, setuptools -, setuptools-scm -, pytestCheckHook -, pytest-doctestplus -, hypothesis +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + numpy, + astropy, + astropy-extension-helpers, + setuptools, + setuptools-scm, + pytestCheckHook, + pytest-doctestplus, + hypothesis, }: buildPythonPackage rec { @@ -19,12 +20,17 @@ buildPythonPackage rec { src = fetchPypi { inherit version; - pname = lib.replaceStrings ["-"] ["_"] pname; + pname = lib.replaceStrings [ "-" ] [ "_" ] pname; hash = "sha256-3l0qfsl7FnBFBmlx8loVDR5AYfBxWb4jZJY02zbnl0Y="; }; + postPatch = '' + substituteInPlace pyproject.toml --replace "numpy>=2.0.0rc1" "numpy" + ''; + nativeBuildInputs = [ astropy-extension-helpers + numpy setuptools setuptools-scm ]; |