connman-gtk: fix FTBFS with GCC-14 (incompatible pointer types) (#376077)
[NixPkgs.git] / pkgs / development / python-modules / mayavi / default.nix
blobf5099af1f8f9caf24c19c175ab605295d6b03c9a
2   lib,
3   apptools,
4   buildPythonPackage,
5   envisage,
6   fetchPypi,
7   numpy,
8   packaging,
9   pyface,
10   pygments,
11   pyqt5,
12   pythonOlder,
13   pythonAtLeast,
14   traitsui,
15   vtk,
16   wrapQtAppsHook,
19 buildPythonPackage rec {
20   pname = "mayavi";
21   version = "4.8.2";
22   format = "setuptools";
24   disabled = pythonOlder "3.8";
26   src = fetchPypi {
27     inherit pname version;
28     hash = "sha256-sQ/pFF8hxI5JAvDnRrNgOzy2lNEUVlFaRoIPIaCnQik=";
29   };
31   nativeBuildInputs = [ wrapQtAppsHook ];
33   propagatedBuildInputs = [
34     apptools
35     envisage
36     numpy
37     packaging
38     pyface
39     pygments
40     pyqt5
41     traitsui
42     vtk
43   ];
45   env.NIX_CFLAGS_COMPILE = "-Wno-error";
47   # Needs X server
48   doCheck = false;
50   pythonImportsCheck = [ "mayavi" ];
52   preFixup = ''
53     makeWrapperArgs+=("''${qtWrapperArgs[@]}")
54   '';
56   meta = with lib; {
57     description = "3D visualization of scientific data in Python";
58     homepage = "https://github.com/enthought/mayavi";
59     license = licenses.bsdOriginal;
60     maintainers = with maintainers; [ ];
61     mainProgram = "mayavi2";
62   };