depot/third_party/nixpkgs/pkgs/development/python-modules/mayavi/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

63 lines
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.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-sQ/pFF8hxI5JAvDnRrNgOzy2lNEUVlFaRoIPIaCnQik=";
};
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[@]}")
'';
meta = with lib; {
description = "3D visualization of scientific data in Python";
homepage = "https://github.com/enthought/mayavi";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ knedlsepp ];
mainProgram = "mayavi2";
};
}