2021-08-30 23:22:56 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, substituteAll
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
|
|
|
, fontconfig
|
|
|
|
, freetype-py
|
|
|
|
, hsluv
|
|
|
|
, kiwisolver
|
|
|
|
, libGL
|
|
|
|
, numpy
|
|
|
|
, setuptools-scm
|
|
|
|
, setuptools-scm-git-archive
|
|
|
|
}:
|
2020-02-04 19:54:20 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vispy";
|
2021-08-30 23:22:56 +01:00
|
|
|
version = "0.8.1";
|
2020-02-04 19:54:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-30 23:22:56 +01:00
|
|
|
sha256 = "6e482e68487f5384205d349f288580d6287fd690df4cdc3ad4c573afc39990f1";
|
2020-02-04 19:54:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./library-paths.patch;
|
|
|
|
fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
|
|
gl = "${libGL.out}/lib/libGL${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-08-30 23:22:56 +01:00
|
|
|
cython
|
|
|
|
setuptools-scm
|
|
|
|
setuptools-scm-git-archive
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libGL
|
2020-02-04 19:54:20 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-08-30 23:22:56 +01:00
|
|
|
fontconfig
|
|
|
|
freetype-py
|
|
|
|
hsluv
|
|
|
|
kiwisolver
|
|
|
|
numpy
|
2020-02-04 19:54:20 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # otherwise runs OSX code on linux.
|
2021-08-30 23:22:56 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"vispy"
|
|
|
|
"vispy.color"
|
|
|
|
"vispy.geometry"
|
|
|
|
"vispy.gloo"
|
|
|
|
"vispy.glsl"
|
|
|
|
"vispy.io"
|
|
|
|
"vispy.plot"
|
|
|
|
"vispy.scene"
|
|
|
|
"vispy.util"
|
|
|
|
"vispy.visuals"
|
|
|
|
];
|
2020-02-04 19:54:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-07-31 18:01:50 +01:00
|
|
|
homepage = "https://vispy.org/index.html";
|
2020-02-04 19:54:20 +00:00
|
|
|
description = "Interactive scientific visualization in Python";
|
|
|
|
license = licenses.bsd3;
|
2020-03-26 13:16:12 +00:00
|
|
|
maintainers = with maintainers; [ goertzenator ];
|
2020-02-04 19:54:20 +00:00
|
|
|
};
|
|
|
|
}
|