1 { lib, buildPythonPackage, isPy27, fetchPypi, wrapQtAppsHook
2 , pyface, pygments, numpy, vtk, traitsui, envisage, apptools, pyqt5
5 buildPythonPackage rec {
12 inherit pname version;
13 extension = "tar.bz2";
14 sha256 = "095p7mds6kqqrp7xqv24iygr3mw85rm7x41wb5y4yc3gi1pznldy";
18 # Discovery of 'vtk' in setuptools is not working properly, due to a missing
19 # .egg-info in the vtk package. It does however import and run just fine.
20 substituteInPlace mayavi/__init__.py --replace "'vtk'" ""
22 # building the docs fails with the usual Qt xcb error, so skip:
23 substituteInPlace setup.py \
24 --replace "build.build.run(self)" "build.build.run(self); return"
27 nativeBuildInputs = [ wrapQtAppsHook ];
29 propagatedBuildInputs = [
30 pyface pygments numpy vtk traitsui envisage apptools pyqt5
33 doCheck = false; # Needs X server
36 makeWrapperArgs+=("''${qtWrapperArgs[@]}")
40 description = "3D visualization of scientific data in Python";
41 homepage = "https://github.com/enthought/mayavi";
42 maintainers = with maintainers; [ knedlsepp ];
43 license = licenses.bsdOriginal;