python311Packages.vispy: unbreak

This commit is contained in:
Peder Bergebakken Sundt 2024-07-08 00:35:54 +02:00
parent 7e75ad480a
commit a7ea742bef

View File

@ -31,6 +31,13 @@ buildPythonPackage rec {
hash = "sha256-77u4R6kIuvfnFpq5vylhOKOTZPNn5ssKjsA61xaZ0x0=";
};
postPatch = ''
# https://numpy.org/devdocs/dev/depending_on_numpy.html#numpy-2-0-specific-advice
# upstream enforce builds with numpy 2+, which is backward compat with 1.xx
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0.0rc2" "numpy"
'';
patches = lib.optionals (!stdenv.hostPlatform.isDarwin) [
(substituteAll {
src = ./library-paths.patch;