me
/
guix
Archived
1
0
Fork 0

gnu: python-seaborn: Simplify 'start-xserver' phase.

* gnu/packages/python-xyz.scm (python-seaborn)[arguments]: In
'start-xserver' phase, assume "Xvfb" is in $PATH.
master
Ludovic Courtès 2021-07-08 17:32:50 +02:00
parent c7cfe54018
commit 3125255cc5
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 7 deletions

View File

@ -8812,13 +8812,11 @@ SVG, EPS, PNG and terminal output.")
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'start-xserver
(lambda* (#:key inputs #:allow-other-keys)
(let ((xorg-server (assoc-ref inputs "xorg-server")))
;; There must be a running X server and make check doesn't
;; start one. Therefore we must do it.
(system (format #f "~a/bin/Xvfb :1 &" xorg-server))
(setenv "DISPLAY" ":1")
#t)))
(lambda _
;; There must be a running X server and make check doesn't
;; start one. Therefore we must do it.
(system "Xvfb :1 &")
(setenv "DISPLAY" ":1")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?