Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / vispy / default.nix
blobe25133dfda5b6ff0c67088f19b1094b99f54f260
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , substituteAll
5 , fetchPypi
6 , cython
7 , fontconfig
8 , freetype-py
9 , hsluv
10 , kiwisolver
11 , libGL
12 , numpy
13 , oldest-supported-numpy
14 , packaging
15 , pythonOlder
16 , setuptools
17 , setuptools-scm
18 , wheel
21 buildPythonPackage rec {
22   pname = "vispy";
23   version = "0.14.2";
24   pyproject = true;
26   disabled = pythonOlder "3.7";
28   src = fetchPypi {
29     inherit pname version;
30     hash = "sha256-7ti0TW9ch70pWySqmi4OTm3GqQXM7gGy1ByPvwp2ez0=";
31   };
33   patches = [
34     (substituteAll {
35       src = ./library-paths.patch;
36       fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}";
37       gl = "${libGL.out}/lib/libGL${stdenv.hostPlatform.extensions.sharedLibrary}";
38     })
39   ];
41   nativeBuildInputs = [
42     cython
43     oldest-supported-numpy
44     setuptools
45     setuptools-scm
46     wheel
47   ];
49   buildInputs = [
50     libGL
51   ];
53   propagatedBuildInputs = [
54     freetype-py
55     hsluv
56     kiwisolver
57     numpy
58     packaging
59   ];
61   doCheck = false;  # otherwise runs OSX code on linux.
63   pythonImportsCheck = [
64     "vispy"
65     "vispy.color"
66     "vispy.geometry"
67     "vispy.gloo"
68     "vispy.glsl"
69     "vispy.io"
70     "vispy.plot"
71     "vispy.scene"
72     "vispy.util"
73     "vispy.visuals"
74   ];
76   meta = with lib; {
77     description = "Interactive scientific visualization in Python";
78     homepage = "https://vispy.org/index.html";
79     changelog = "https://github.com/vispy/vispy/blob/v${version}/CHANGELOG.md";
80     license = licenses.bsd3;
81     maintainers = with maintainers; [ goertzenator ];
82   };