python3Packages.parsnip: fix Numpy 2.5 error

This commit is contained in:
Doron Behar
2026-07-13 11:01:57 +03:00
parent 39510dfd3f
commit a77e5341c5
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# build-system
setuptools,
@@ -33,6 +34,18 @@ buildPythonPackage (finalAttrs: {
hash = "sha256-A1YoTBRN3ukcueUso5P2zPZ/pxu25k9h6aI7+AQvr1Q=";
};
patches = [
# Numpy 2.5 compatibility, see: https://github.com/glotzerlab/parsnip/pull/245
(fetchpatch {
url = "https://github.com/glotzerlab/parsnip/commit/41a6bd6e42ea212203d5ce5864c687927b834586.patch";
includes = [
# Other files are changelog & credits
"parsnip/parsnip.py"
];
hash = "sha256-Y91fITsPkmcct2tDsaHtNB8ct41IMtw1A+QnRwChc7k=";
})
];
build-system = [
setuptools
];