gnu: python-seaborn: 'check' phase honors #:tests?.

* gnu/packages/python-xyz.scm (python-seaborn)[arguments]: Change
'check' phase to honor #:tests?.
This commit is contained in:
Ludovic Courtès 2021-07-08 17:27:23 +02:00
parent ef3d60fc76
commit c7cfe54018
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -8819,7 +8819,10 @@ (define-public python-seaborn
(system (format #f "~a/bin/Xvfb :1 &" xorg-server))
(setenv "DISPLAY" ":1")
#t)))
(replace 'check (lambda _ (invoke "pytest" "seaborn") #t)))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "seaborn")))))))
(propagated-inputs
`(("python-pandas" ,python-pandas)
("python-matplotlib" ,python-matplotlib)