diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-08-12 15:40:01 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-08-12 15:40:01 +0000 |
commit | 61c0f3015595331e3e1b77b3ba53003f3ecbb932 (patch) | |
tree | 6a33212e0cc517cba8f55c19259a882d5e32a501 /pkgs/development/python-modules | |
parent | 9c161c21e73b09ccc2d973ffb18a656e520651e0 (diff) |
Add PyOpenGL.
svn path=/nixpkgs/trunk/; revision=12598
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/pyopengl/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyopengl/default.nix b/pkgs/development/python-modules/pyopengl/default.nix new file mode 100644 index 0000000000000..5a33f1db806b2 --- /dev/null +++ b/pkgs/development/python-modules/pyopengl/default.nix @@ -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"; + }; + } |