summary refs log tree commit diff
diff options
context:
space:
mode:
authorJulien Malka <julien@malka.sh>2023-11-29 17:52:59 +0100
committerGitHub <noreply@github.com>2023-11-29 17:52:59 +0100
commitf8f87feb4ada8af7d83ee12a1bb2973f450b95bc (patch)
tree399511d538022f16717e3a20d7765ed116c5dbb0
parentde0ad770825cd95660b74c3e1f53e91273192207 (diff)
parent6dca38404f779ca85c14ebf23c5152bd0989873c (diff)
Merge pull request #270883 from NixOS/backport-270027-to-release-23.11
[Backport release-23.11] python311Packages.astropy-healpix: upstream patch to fix darwin build
-rw-r--r--pkgs/development/python-modules/astropy-healpix/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/astropy-healpix/default.nix b/pkgs/development/python-modules/astropy-healpix/default.nix
index 64fe911661ff5..0d66f4c728dcf 100644
--- a/pkgs/development/python-modules/astropy-healpix/default.nix
+++ b/pkgs/development/python-modules/astropy-healpix/default.nix
@@ -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