python3Packages.nipy: fix build with deprecated numpy api

This commit is contained in:
qbisi
2025-07-17 09:32:57 +08:00
parent 171197b40d
commit 0de8b8d1e5
@@ -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
'';