From 6dca38404f779ca85c14ebf23c5152bd0989873c Mon Sep 17 00:00:00 2001 From: annalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com> Date: Sun, 26 Nov 2023 02:26:50 +0000 Subject: [PATCH] python311Packages.astropy-healpix: upstream patch to fix darwin build upstream patch adds const to arguments so the function definition matches the function pointer prototype. remove patch on next version update (cherry picked from commit 7246ec5b0d2c79c28b66b48f5dce877710af6899) --- .../python-modules/astropy-healpix/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/astropy-healpix/default.nix b/pkgs/development/python-modules/astropy-healpix/default.nix index 64fe911661ff..0d66f4c728dc 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