[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50505] [PATCH v3 05/12] gnu: Add python-pyglet.
From: |
Liliana Marie Prikler |
Subject: |
[bug#50505] [PATCH v3 05/12] gnu: Add python-pyglet. |
Date: |
Sun, 02 Jan 2022 01:36:35 +0100 |
User-agent: |
Evolution 3.42.1 |
Am Sonntag, dem 02.01.2022 um 00:51 +0100 schrieb Daniel Meißner:
> + (add-before 'build 'fix-lib-paths
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + (substitute* '("pyglet/gl/lib_glx.py")
> + (("'GL'")
> + (string-append "\"" (assoc-ref inputs "mesa")
> + "/lib/libGL.so\""))
> + (("'GLU'")
> + (string-append "\"" (assoc-ref inputs "glu")
> + "/lib/libGLU.so\"")))
> + (substitute* '("pyglet/font/freetype_lib.py")
> + (("'freetype'")
> + (string-append "\"" (assoc-ref inputs "freetype")
> + "/lib/libfreetype.so\"")))
> + (substitute* '("pyglet/font/fontconfig.py")
> + (("'fontconfig'")
> + (string-append "\"" (assoc-ref inputs "fontconfig")
> + "/lib/libfontconfig.so\"")))))
Here as well, friendship ended with assoc-ref ;)
> + (replace 'check
> + (lambda* (#:key inputs outputs tests? #:allow-other-keys)
> + (when tests?
> + (system "Xvfb :1 &")
> + (setenv "DISPLAY" ":1")
> + (add-installed-pythonpath inputs outputs)
> + (invoke "pytest" "tests/unit")))))))
We typically use a pre-check phase to set things up. Does python
support #:test-target?
> + (description
> + "Pyglet is a Python library for developing games and other
> visually-rich
> +applications. It supports windowing, user interface event handling,
> +Joysticks, OpenGL graphics, loading images and videos, and playing
> sounds and
> +music. All of this with a friendly Pythonic API that's simple to
> learn.")
Last sentence sounds like an ad statement, the others can stay.
- [bug#50505] [PATCH v3 00/13] Add python-manim and its missing dependencies, Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 01/12] gnu: Add python-cloup., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 03/12] gnu: Add python-glcontext., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 04/12] gnu: Add python-moderngl., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 05/12] gnu: Add python-pyglet., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 05/12] gnu: Add python-pyglet.,
Liliana Marie Prikler <=
- [bug#50505] [PATCH v3 02/12] gnu: Add python-cloup-0.7., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 07/12] gnu: Add python-screeninfo., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 10/12] gnu: Add python-mapbox-earcut., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 11/12] gnu: Add python-screeninfo-0.6., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 12/12] gnu: Add python-manim 0.9.0., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 09/12] gnu: Add python-manimpango., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 06/12] gnu: Add python-pyrr., Daniel Meißner, 2022/01/01
- [bug#50505] [PATCH v3 08/12] gnu: Add python-moderngl-window., Daniel Meißner, 2022/01/01