[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/11: gnu: Add python-pyopengl.
From: |
guix-commits |
Subject: |
01/11: gnu: Add python-pyopengl. |
Date: |
Mon, 13 Jul 2020 06:54:25 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c5384ea3137243f77d901a51c45c5f489fa452f1
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sat Jun 27 15:06:14 2020 +0200
gnu: Add python-pyopengl.
* gnu/packages/python-xyz.scm (python-pyopengl): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 109a14b..f832793 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15512,6 +15512,52 @@ library.")
(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")
- branch master updated (1cc3a04 -> 170bfff), guix-commits, 2020/07/13
- 02/11: gnu: Add python-pyopengl-accelerate., guix-commits, 2020/07/13
- 01/11: gnu: Add python-pyopengl.,
guix-commits <=
- 03/11: gnu: Add xf86-video-dummy., guix-commits, 2020/07/13
- 05/11: gnu: python2-pyopengl-accelerate: Remove., guix-commits, 2020/07/13
- 06/11: gnu: python2-pyopengl: Remove., guix-commits, 2020/07/13
- 04/11: gnu: xpra: Upgrade to 4.0.2., guix-commits, 2020/07/13
- 07/11: gnu: Add r-rismed., guix-commits, 2020/07/13
- 08/11: gnu: Add r-semver., guix-commits, 2020/07/13
- 09/11: gnu: Add r-binman., guix-commits, 2020/07/13
- 10/11: gnu: Add r-wdman., guix-commits, 2020/07/13
- 11/11: gnu: Add r-rselenium., guix-commits, 2020/07/13