Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 40 lines 1.1 kB view raw
1{ lib, buildPythonPackage, substituteAll, stdenv, 2 fetchPypi, numpy, cython, freetype-py, fontconfig, libGL, 3 setuptools_scm, setuptools-scm-git-archive 4 }: 5 6buildPythonPackage rec { 7 pname = "vispy"; 8 version = "0.6.6"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "6f3c4d00be9e6761c046d520a86693d78a0925d47eeb2fc095e95dac776f74ee"; 13 }; 14 15 patches = [ 16 (substituteAll { 17 src = ./library-paths.patch; 18 fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}"; 19 gl = "${libGL.out}/lib/libGL${stdenv.hostPlatform.extensions.sharedLibrary}"; 20 }) 21 ]; 22 23 nativeBuildInputs = [ 24 cython setuptools_scm setuptools-scm-git-archive 25 ]; 26 27 propagatedBuildInputs = [ 28 numpy freetype-py fontconfig libGL 29 ]; 30 31 doCheck = false; # otherwise runs OSX code on linux. 32 pythonImportsCheck = [ "vispy" ]; 33 34 meta = with lib; { 35 homepage = "http://vispy.org/index.html"; 36 description = "Interactive scientific visualization in Python"; 37 license = licenses.bsd3; 38 maintainers = with maintainers; [ goertzenator ]; 39 }; 40}