gnu: botan: Respect #:tests?.

* gnu/packages/crypto.scm (botan)[arguments]: Respect #:tests? in the custom
'check' phase.

Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
Jack Hill 2021-05-21 15:40:39 -04:00 committed by Leo Famulari
parent 5f1c4692a5
commit d1b3b5b73d
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -976,7 +976,9 @@ (define-public botan
(add-before 'check 'library-path-for-tests
(lambda _ (setenv "LD_LIBRARY_PATH" (getcwd))))
(replace 'check
(lambda _ (invoke "./botan-test"))))))
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "./botan-test")))))))
(native-inputs
`(("python" ,python-wrapper)
("python-docutils" ,python-docutils)))