depot/third_party/nixpkgs/pkgs/development/python-modules/vispy/default.nix
Default email 818c48e259 Project import generated by Copybara.
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
2021-10-04 09:37:57 -03:00

73 lines
1.3 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, substituteAll
, fetchPypi
, cython
, fontconfig
, freetype-py
, hsluv
, kiwisolver
, libGL
, numpy
, setuptools-scm
, setuptools-scm-git-archive
}:
buildPythonPackage rec {
pname = "vispy";
version = "0.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "41a6836aa78462370fe15efaade94cbe3344586412f8d7f12689c49c299ff41b";
};
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
];
buildInputs = [
libGL
];
propagatedBuildInputs = [
fontconfig
freetype-py
hsluv
kiwisolver
numpy
];
doCheck = false; # otherwise runs OSX code on linux.
pythonImportsCheck = [
"vispy"
"vispy.color"
"vispy.geometry"
"vispy.gloo"
"vispy.glsl"
"vispy.io"
"vispy.plot"
"vispy.scene"
"vispy.util"
"vispy.visuals"
];
meta = with lib; {
homepage = "https://vispy.org/index.html";
description = "Interactive scientific visualization in Python";
license = licenses.bsd3;
maintainers = with maintainers; [ goertzenator ];
};
}