Merge pull request #270027 from a-n-n-a-l-e-e/astropy-healpix-darwin-build

python311Packages.astropy-healpix: upstream patch to fix darwin build
This commit is contained in:
Julien Malka 2023-11-29 10:53:20 +01:00 committed by GitHub
commit e34acbc79b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchPypi
, fetchpatch
, numpy
, astropy
, astropy-extension-helpers
@ -21,6 +22,16 @@ buildPythonPackage rec {
hash = "sha256-9ILvYqEOaGMD84xm8I3xe53e5a2CIZwjVx7oDXar7qM=";
};
patches = [
# remove on next udpate. make Numpy loop function args const correct.
# https://github.com/astropy/astropy-healpix/pull/199
(fetchpatch {
name = "numpy-const-args-match.patch";
url = "https://github.com/astropy/astropy-healpix/commit/ccf6d9ea4be131f56646adbd7bc482bfcd84f21c.patch";
hash = "sha256-fpDxTbs3sHJSb4mnveorM+wlseXbZu1biGyBTNC9ZUo=";
})
];
nativeBuildInputs = [
astropy-extension-helpers
setuptools-scm