2020-08-20 17:08:02 +00:00
|
|
|
{ lib, buildPythonPackage, substituteAll, stdenv,
|
|
|
|
fetchPypi, numpy, cython, freetype-py, fontconfig, libGL,
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm, setuptools-scm-git-archive
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vispy";
|
2020-12-03 08:41:04 +00:00
|
|
|
version = "0.6.6";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-03 08:41:04 +00:00
|
|
|
sha256 = "6f3c4d00be9e6761c046d520a86693d78a0925d47eeb2fc095e95dac776f74ee";
|
2020-08-20 17:08:02 +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-06-04 09:07:49 +00:00
|
|
|
cython setuptools-scm setuptools-scm-git-archive
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy freetype-py fontconfig libGL
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # otherwise runs OSX code on linux.
|
|
|
|
pythonImportsCheck = [ "vispy" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://vispy.org/index.html";
|
|
|
|
description = "Interactive scientific visualization in Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ goertzenator ];
|
|
|
|
};
|
|
|
|
}
|