vispy: init at 0.6.4
This commit is contained in:
39
pkgs/development/python-modules/vispy/default.nix
Normal file
39
pkgs/development/python-modules/vispy/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ lib, buildPythonPackage, substituteAll, stdenv,
|
||||
fetchPypi, numpy, cython, freetype-py, fontconfig, libGL,
|
||||
setuptools_scm, setuptools-scm-git-archive
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vispy";
|
||||
version = "0.6.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "07sb4qww6mgzm66qsrr3pd66yz39r6jj4ibb3qmfg1kwnxs6ayv2";
|
||||
};
|
||||
|
||||
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 = [
|
||||
cython setuptools_scm setuptools-scm-git-archive
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy freetype-py fontconfig libGL
|
||||
];
|
||||
|
||||
doCheck = false; # otherwise runs OSX code on linux.
|
||||
|
||||
meta = with lib; {
|
||||
homepage = http://vispy.org/index.html;
|
||||
description = "Interactive scientific visualization in Python";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user