nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 78 lines 1.5 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 replaceVars, 6 fetchPypi, 7 cython, 8 fontconfig, 9 freetype-py, 10 hsluv, 11 kiwisolver, 12 libGL, 13 numpy, 14 oldest-supported-numpy, 15 packaging, 16 setuptools, 17 setuptools-scm, 18 wheel, 19}: 20 21buildPythonPackage rec { 22 pname = "vispy"; 23 version = "0.16.1"; 24 pyproject = true; 25 26 src = fetchPypi { 27 inherit pname version; 28 hash = "sha256-uTwyyF0IwGro9eMXf5z9bEleF0XyEgt3eDCt7l2cNkg="; 29 }; 30 31 patches = lib.optionals (!stdenv.hostPlatform.isDarwin) [ 32 (replaceVars ./library-paths.patch { 33 fontconfig = "${fontconfig.lib}/lib/libfontconfig${stdenv.hostPlatform.extensions.sharedLibrary}"; 34 gl = "${libGL.out}/lib/libGL${stdenv.hostPlatform.extensions.sharedLibrary}"; 35 }) 36 ]; 37 38 nativeBuildInputs = [ 39 cython 40 oldest-supported-numpy 41 setuptools 42 setuptools-scm 43 wheel 44 ]; 45 46 buildInputs = [ libGL ]; 47 48 propagatedBuildInputs = [ 49 freetype-py 50 hsluv 51 kiwisolver 52 numpy 53 packaging 54 ]; 55 56 doCheck = false; # otherwise runs OSX code on linux. 57 58 pythonImportsCheck = [ 59 "vispy" 60 "vispy.color" 61 "vispy.geometry" 62 "vispy.gloo" 63 "vispy.glsl" 64 "vispy.io" 65 "vispy.plot" 66 "vispy.scene" 67 "vispy.util" 68 "vispy.visuals" 69 ]; 70 71 meta = { 72 description = "Interactive scientific visualization in Python"; 73 homepage = "https://vispy.org/index.html"; 74 changelog = "https://github.com/vispy/vispy/blob/v${version}/CHANGELOG.md"; 75 license = lib.licenses.bsd3; 76 maintainers = with lib.maintainers; [ goertzenator ]; 77 }; 78}