python3Packages.bayespy: fix test_message_to_parent with numpy 2.4 (#519271)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-19 15:07:17 +00:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
setuptools,
numpy,
scipy,
@@ -22,6 +23,13 @@ buildPythonPackage rec {
hash = "sha256-kx87XY4GCL1PQIeZyovEbrPyCC/EVA6Hdvt+3P/D6VI=";
};
patches = [
(fetchpatch2 {
url = "https://salsa.debian.org/python-team/packages/python-bayespy/-/raw/071f54815608b31aebac8f8e83bc532b2c632a48/debian/patches/numpy2.4-compat.patch";
hash = "sha256-Tk3z94+vbGaSIqGFFRQZz0pcXI1Fzcbnva3oWnv502U=";
})
];
postPatch = ''
substituteInPlace versioneer.py \
--replace-fail SafeConfigParser ConfigParser \