mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-glcontext: Keep default check phase.
* gnu/packages/python-graphics.scm (python-glcontext) [arguments] <#:phases>: Keep default 'check phase; add 'prepare-test-environment phase. [native-inputs]: Add python-setuptools and python-wheel. Change-Id: I0ab856ab1bfe339c53600852bc5d90dbe1051c13
This commit is contained in:
parent
af7e1d89e6
commit
cdc69de97d
1 changed files with 6 additions and 7 deletions
|
@ -78,19 +78,18 @@
|
||||||
(string-append "'" mesa "/lib/libEGL.so'"))
|
(string-append "'" mesa "/lib/libEGL.so'"))
|
||||||
(("find_library\\(\"X11\"\\)")
|
(("find_library\\(\"X11\"\\)")
|
||||||
(string-append "'" libx11 "/lib/libX11.so'"))))))
|
(string-append "'" libx11 "/lib/libX11.so'"))))))
|
||||||
(replace 'check
|
(add-before 'check 'prepare-test-environment
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
(lambda _
|
||||||
(when tests?
|
|
||||||
(system "Xvfb :1 &")
|
(system "Xvfb :1 &")
|
||||||
(setenv "DISPLAY" ":1")
|
(setenv "DISPLAY" ":1"))))))
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(invoke "pytest" "tests")))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list libx11
|
(list libx11
|
||||||
mesa))
|
mesa))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-psutil
|
(list python-psutil
|
||||||
python-pytest
|
python-pytest
|
||||||
|
python-setuptools
|
||||||
|
python-wheel
|
||||||
xorg-server-for-tests))
|
xorg-server-for-tests))
|
||||||
(home-page "https://github.com/moderngl/glcontext")
|
(home-page "https://github.com/moderngl/glcontext")
|
||||||
(synopsis "Portable OpenGL Context for ModernGL")
|
(synopsis "Portable OpenGL Context for ModernGL")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue