mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
646d8a4577
All removed patches have been merged and tagged in this release. Docs are no longer built by default as of 4.8.0
64 lines
1.0 KiB
Nix
64 lines
1.0 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";
|
|
};
|
|
}
|