Files
nixpkgs/pkgs/development/python-modules/mayavi/default.nix
2025-05-26 00:09:03 +08:00

67 lines
1.1 KiB
Nix

{
lib,
apptools,
buildPythonPackage,
envisage,
fetchPypi,
numpy,
packaging,
pyface,
pygments,
pyqt5,
pythonOlder,
pythonAtLeast,
traitsui,
vtk,
wrapQtAppsHook,
}:
buildPythonPackage rec {
pname = "mayavi";
version = "4.8.3";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-72nMvfWPIPGzlJMNXjoW3aSxo5rcvHb3mr0mSD0prPU=";
};
nativeBuildInputs = [ wrapQtAppsHook ];
propagatedBuildInputs = [
apptools
envisage
numpy
packaging
pyface
pygments
pyqt5
traitsui
vtk
];
env.NIX_CFLAGS_COMPILE = "-Wno-error";
# Needs X server
doCheck = false;
pythonImportsCheck = [ "mayavi" ];
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
# stripping the ico file on macos cause segfault
stripExclude = [ "*.ico" ];
meta = with lib; {
description = "3D visualization of scientific data in Python";
homepage = "https://github.com/enthought/mayavi";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ ];
mainProgram = "mayavi2";
};
}