2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
apptools,
|
|
|
|
buildPythonPackage,
|
|
|
|
envisage,
|
|
|
|
fetchPypi,
|
|
|
|
numpy,
|
|
|
|
packaging,
|
|
|
|
pyface,
|
|
|
|
pygments,
|
|
|
|
pyqt5,
|
|
|
|
pythonOlder,
|
|
|
|
pythonAtLeast,
|
|
|
|
traitsui,
|
|
|
|
vtk,
|
|
|
|
wrapQtAppsHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mayavi";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "4.8.2";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-sQ/pFF8hxI5JAvDnRrNgOzy2lNEUVlFaRoIPIaCnQik=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
apptools
|
|
|
|
envisage
|
|
|
|
numpy
|
2023-01-11 07:51:40 +00:00
|
|
|
packaging
|
2022-01-13 20:06:32 +00:00
|
|
|
pyface
|
|
|
|
pygments
|
|
|
|
pyqt5
|
|
|
|
traitsui
|
|
|
|
vtk
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
# Needs X server
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mayavi" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "3D visualization of scientific data in Python";
|
|
|
|
homepage = "https://github.com/enthought/mayavi";
|
|
|
|
license = licenses.bsdOriginal;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ knedlsepp ];
|
2024-07-27 06:49:29 +00:00
|
|
|
mainProgram = "mayavi2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|