summaryrefslogtreecommitdiff
path: root/gnu/packages/python-graphics.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-05-08 21:47:47 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-05-18 14:36:58 +0100
commitcc446b936435270c1cbf2bc5fc90d48a6cf645bf (patch)
tree58b1265d042131056b1d05eda5c9524b55443027 /gnu/packages/python-graphics.scm
parentc7a9771070c535cb794747f79c167b0f9080abda (diff)
gnu: python-pyglet-1: Fix tests on Python@3.12.
* gnu/packages/python-graphics.scm (python-pyglet-1): [phases]{fix-python-3.12-incompatibility}: New phase. Change-Id: I9f911c646fd22f864d89e985cd3f77d0390ba6eb
Diffstat (limited to 'gnu/packages/python-graphics.scm')
-rw-r--r--gnu/packages/python-graphics.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/python-graphics.scm b/gnu/packages/python-graphics.scm
index 216f70a58b..1652dd1653 100644
--- a/gnu/packages/python-graphics.scm
+++ b/gnu/packages/python-graphics.scm
@@ -587,6 +587,12 @@ music." )
"--deselect=tests/unit/media/test_listener.py::test_openal_listener")
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-python-3.12-incompatibility
+ ;; The only user of pyglet@1 is printrun, see:
+ ;; <https://github.com/kliment/Printrun/issues/1468>.
+ (lambda _
+ (substitute* "tests/integration/test_toplevel_imports.py"
+ (("import imp") ""))))
(add-after 'unpack 'patch-lib-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (list "pyglet/font/fontconfig.py"