python3Packages.nipy: fix build with deprecated numpy api (#423726)

This commit is contained in:
Nick Cao
2025-07-17 16:04:36 -04:00
committed by GitHub
2 changed files with 17 additions and 0 deletions
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
pythonOlder,
hatchling,
hatch-vcs,
@@ -32,6 +33,13 @@ buildPythonPackage rec {
hash = "sha256-C9ymUDsceEtEbHRaRUI2fed1bPug1yFDuR+f+3i+Vps=";
};
patches = [
(fetchpatch2 {
url = "https://github.com/nipy/nibabel/commit/3f40a3bc0c4bd996734576a15785ad0f769a963a.patch?full_index=1";
hash = "sha256-URsxgP6Sd5IIOX20GtAYtWBWOhw+Hiuhgu1oa8o8NXk=";
})
];
build-system = [
hatchling
hatch-vcs
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
cython,
@@ -35,6 +36,14 @@ buildPythonPackage rec {
hash = "sha256-KGMGu0/0n1CzN++ri3Ig1AJjeZfkl4KzNgm6jdwXB7o=";
};
patches = [
# https://github.com/nipy/nipy/pull/589
(fetchpatch2 {
url = "https://github.com/nipy/nipy/pull/589/commits/76f2aae95dede9b8ac025dc32ce94791904f25e4.patch?full_index=1";
hash = "sha256-Rnwfx6JKl+nE9wvBGKXFtizjuB4Bl1QDF88CvSZU/RQ=";
})
];
postPatch = ''
patchShebangs nipy/_build_utils/cythoner.py
'';