sharlatan pushed a commit to branch master
in repository guix.

commit a80f4f67498630d75d2e39c7d68a8d20b5e17fb3
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Feb 7 16:30:33 2025 +0000

    gnu: python-pyopengl: Enable tests.
    
    * gnu/packages/python-xyz.scm (python-pyopengl)
    [build-system]: Swap to pyproject-build-system.
    [arguments] <tests?>:
    Enable them.
    <tests-flags>: Skip 5 tests.
    [native-inputs]: Add python-pytest, python-setuptools, python-pygame,
    and python-wheel.
    
    Change-Id: I090c862e25d537dff83fd9a5c7ec62e9e44decc1
---
 gnu/packages/python-xyz.scm | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cec68d59b6..07d31570f1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -216,6 +216,7 @@
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages game-development)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages gdb)
   #:use-module (gnu packages geo)
@@ -27320,11 +27321,18 @@ functionality like full case-folding for 
case-insensitive matches in Unicode.")
        (sha256
         (base32
          "09syrsfrcknr1k2wmj05gfd5d0dyjfxzbipzbd0agv9775vwi9lf"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
      (list
-      ;; Tests fail: AttributeError: 'GLXPlatform' object has no attribute 
'OSMesa'
-      #:tests? #f
+      #:test-flags
+      #~(list "-k" (string-join
+                    ;; XXX: Check why these test fail.
+                    (list "not test_get_read_fb_binding"
+                          "test_get_version"
+                          "test_glCallLists_twice2"
+                          "test_lookupint"
+                          "test_pointers")
+                    " and not "))
       #:phases
       #~(modify-phases %standard-phases
           (add-before 'build 'fix-paths
@@ -27347,6 +27355,11 @@ functionality like full case-folding for 
case-insensitive matches in Unicode.")
                          (string-append "lib/lib" gl-library ".so"))))
               ;; Not providing libgle. It seems to be very old.
               )))))
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-pygame
+           python-wheel))
     (inputs
      (list freeglut
            glu

Reply via email to