uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
73
pkgs/development/python-modules/vispy/default.nix
Normal file
73
pkgs/development/python-modules/vispy/default.nix
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
{ 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.10.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-t2rW8+rK2/xJRM+4IR6ttuqEF6WQmT7OWqfKrAgs/8I=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue