1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 matplotlib,
6 numpy,
7 pillow,
8 pooch,
9 pythonAtLeast,
10 scooby,
11 setuptools,
12 typing-extensions,
13 vtk,
14}:
15
16buildPythonPackage rec {
17 pname = "pyvista";
18 version = "0.46.3";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "pyvista";
23 repo = "pyvista";
24 tag = "v${version}";
25 hash = "sha256-RpgrsNMZmIfx3bb7W9xU6u4gJoAuDQ8Xx9C25TLp6PI=";
26 };
27
28 # remove this line once pyvista 0.46 is released
29 pythonRelaxDeps = [ "vtk" ];
30
31 build-system = [ setuptools ];
32
33 dependencies = [
34 matplotlib
35 numpy
36 pillow
37 pooch
38 scooby
39 typing-extensions
40 vtk
41 ];
42
43 # Fatal Python error: Aborted
44 doCheck = false;
45
46 pythonImportsCheck = [ "pyvista" ];
47
48 meta = with lib; {
49 description = "Easier Pythonic interface to VTK";
50 homepage = "https://pyvista.org";
51 changelog = "https://github.com/pyvista/pyvista/releases/tag/${src.tag}";
52 license = licenses.mit;
53 maintainers = with maintainers; [ wegank ];
54 };
55}