3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #2034 from ambrop72/pyopengl

pyopengl: Bump to 3.0.2 and hack the library loading to make it work.
This commit is contained in:
Peter Simons 2014-03-26 11:10:48 +01:00
commit aaf414cb09

View file

@ -5591,18 +5591,25 @@ rec {
pyopengl =
let version = "3.0.0b5";
let version = "3.0.2";
in
buildPythonPackage {
name = "pyopengl-${version}";
src = fetchurl {
url = "mirror://sourceforge/pyopengl/PyOpenGL-${version}.tar.gz";
sha256 = "1rjpl2qdcqn4wamkik840mywdycd39q8dn3wqfaiv35jdsbifxx3";
url = "http://pypi.python.org/packages/source/P/PyOpenGL/PyOpenGL-${version}.tar.gz";
sha256 = "9ef93bbea2c193898341f574e281c3ca0dfe87c53aa25fbec4b03581f6d1ba03";
};
propagatedBuildInputs = with pkgs; [ mesa freeglut pil ];
patchPhase = ''
sed -i "s|util.find_library( name )|name|" OpenGL/platform/ctypesloader.py
sed -i "s|'GL',|'libGL.so',|" OpenGL/platform/glx.py
sed -i "s|'GLU',|'${pkgs.mesa}/lib/libGLU.so',|" OpenGL/platform/glx.py
sed -i "s|'glut',|'${pkgs.freeglut}/lib/libglut.so',|" OpenGL/platform/glx.py
'';
meta = {
homepage = http://pyopengl.sourceforge.net/;
description = "PyOpenGL, the Python OpenGL bindings";