mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: Add python-pyopengl.
* gnu/packages/python-xyz.scm (python-pyopengl): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
1cc3a0451e
commit
c5384ea313
1 changed files with 46 additions and 0 deletions
|
@ -15512,6 +15512,52 @@ (define-public python2-pyopengl-accelerate
|
|||
(description
|
||||
"This is the Cython-coded accelerator module for PyOpenGL.")))
|
||||
|
||||
(define-public python-pyopengl
|
||||
(package
|
||||
(name "python-pyopengl")
|
||||
(version "3.1.5")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "PyOpenGL" version))
|
||||
(sha256
|
||||
(base32
|
||||
"091lp9bpqi8yf1nmyg19xmvw611lrzq2q94cl1k5gnlh0c6vl1s1"))))
|
||||
(build-system python-build-system)
|
||||
(inputs
|
||||
`(("mesa" ,mesa)
|
||||
("freeglut" ,freeglut)
|
||||
("glu" ,glu)))
|
||||
(arguments
|
||||
`(#:tests? #f ; Tests fail: AttributeError: 'GLXPlatform' object has no
|
||||
;attribute 'OSMesa'
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'build 'fix-paths
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(substitute* '("OpenGL/platform/ctypesloader.py")
|
||||
(("filenames_to_try = \\[\\]") "filenames_to_try = [name]"))
|
||||
(substitute* '("OpenGL/platform/glx.py" "tests/check_glut_load.py")
|
||||
(("'GL'")
|
||||
(string-append "'" (assoc-ref inputs "mesa") "/lib/libGL.so'"))
|
||||
(("'GLU'")
|
||||
(string-append "'" (assoc-ref inputs "glu") "/lib/libGLU.so'"))
|
||||
(("'glut',")
|
||||
(string-append "'" (assoc-ref inputs "freeglut") "/lib/libglut.so',"))
|
||||
(("'GLESv1_CM'")
|
||||
(string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv1_CM.so'"))
|
||||
(("'GLESv2'")
|
||||
(string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv2.so'")))
|
||||
;; Not providing libgle. It seems to be very old.
|
||||
#t)))))
|
||||
(home-page "http://pyopengl.sourceforge.net")
|
||||
(synopsis "Standard OpenGL bindings for Python")
|
||||
(description
|
||||
"PyOpenGL is the most common cross platform Python binding to OpenGL and
|
||||
related APIs. The binding is created using the standard @code{ctypes}
|
||||
library.")
|
||||
(license license:bsd-3)))
|
||||
|
||||
(define-public python-rencode
|
||||
(package
|
||||
(name "python-rencode")
|
||||
|
|
Loading…
Reference in a new issue