Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 68 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ lib, apptools, buildPythonPackage, envisage, fetchPypi, numpy, packaging, pyface, pygments, pyqt5, pythonOlder, pythonAtLeast, traitsui, vtk, wrapQtAppsHook,}:
buildPythonPackage rec { pname = "mayavi"; version = "4.8.3"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi { inherit pname version; hash = "sha256-72nMvfWPIPGzlJMNXjoW3aSxo5rcvHb3mr0mSD0prPU="; };
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[@]}") '';
# stripping the ico file on macos cause segfault stripExclude = [ "*.ico" ];
meta = with lib; { description = "3D visualization of scientific data in Python"; homepage = "https://github.com/enthought/mayavi"; license = licenses.bsdOriginal; maintainers = with maintainers; [ ]; mainProgram = "mayavi2"; # segfault broken = pythonAtLeast "3.13"; };}