python312Packages.mayavi: fix build, pin to numpy_1 (#382970)

This commit is contained in:
Gaétan Lepage 2025-02-18 08:24:56 +01:00 committed by GitHub
commit 70ff571306
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View File

@ -4,13 +4,14 @@
buildPythonPackage,
envisage,
fetchPypi,
numpy,
numpy_1,
packaging,
pyface,
pygments,
pyqt5,
pythonOlder,
pythonAtLeast,
stdenv,
traitsui,
vtk,
wrapQtAppsHook,
@ -33,7 +34,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
apptools
envisage
numpy
numpy_1
packaging
pyface
pygments
@ -59,5 +60,8 @@ buildPythonPackage rec {
license = licenses.bsdOriginal;
maintainers = with maintainers; [ ];
mainProgram = "mayavi2";
# Fails during stripping with:
# The file was not recognized as a valid object file
broken = stdenv.hostPlatform.isDarwin;
};
}

View File

@ -8070,7 +8070,9 @@ self: super: with self; {
mayavi = pkgs.libsForQt5.callPackage ../development/python-modules/mayavi {
inherit buildPythonPackage pythonOlder pythonAtLeast;
inherit (self) pyface pygments numpy packaging vtk traitsui envisage apptools pyqt5;
# when next release contains numpy2 support unpin
# https://github.com/enthought/mayavi/pull/1315
inherit (self) pyface pygments numpy_1 packaging vtk traitsui envisage apptools pyqt5;
};
mayim = callPackage ../development/python-modules/mayim { };