mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 02:55:39 +00:00
Add PyOpenGL.
svn path=/nixpkgs/trunk/; revision=12598
This commit is contained in:
parent
9c161c21e7
commit
61c0f30155
37
pkgs/development/python-modules/pyopengl/default.nix
Normal file
37
pkgs/development/python-modules/pyopengl/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ fetchurl, stdenv, python, setuptools, mesa, freeglut, pil }:
|
||||
|
||||
let version = "3.0.0b5";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "pyopengl-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pyopengl/PyOpenGL-${version}.tar.gz";
|
||||
sha256 = "1rjpl2qdcqn4wamkik840mywdycd39q8dn3wqfaiv35jdsbifxx3";
|
||||
};
|
||||
|
||||
# Note: We need `ctypes', available in Python 2.5+.
|
||||
buildInputs = [ python setuptools mesa freeglut pil ];
|
||||
|
||||
configurePhase = "ensureDir $out/lib/python2.5/site-packages";
|
||||
buildPhase = "python setup.py build";
|
||||
|
||||
installPhase = ''
|
||||
PYTHONPATH="$out/lib/python2.5/site-packages:$PYTHONPATH" \
|
||||
python setup.py install --prefix=$out
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://pyopengl.sourceforge.net/;
|
||||
description = "PyOpenGL, the Python OpenGL bindings";
|
||||
|
||||
longDescription = ''
|
||||
PyOpenGL is the cross platform Python binding to OpenGL and
|
||||
related APIs. The binding is created using the standard (in
|
||||
Python 2.5) ctypes library, and is provided under an extremely
|
||||
liberal BSD-style Open-Source license.
|
||||
'';
|
||||
|
||||
license = "BSD-style";
|
||||
};
|
||||
}
|
@ -4517,6 +4517,11 @@ let pkgs = rec {
|
||||
inherit fetchurl stdenv python libjpeg zlib freetype;
|
||||
};
|
||||
|
||||
pyopengl = import ../development/python-modules/pyopengl {
|
||||
inherit fetchurl stdenv setuptools mesa freeglut pil;
|
||||
python = python25;
|
||||
};
|
||||
|
||||
pythonSip = builderDefsPackage (selectVersion ../development/python-modules/python-sip "4.7.4") {
|
||||
python=python25;
|
||||
} null;
|
||||
|
Loading…
Reference in New Issue
Block a user