mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu: go-github-com-protonmail-go-crypto: Enable tests.
* gnu/packages/golang-crypto.scm (go-github-com-protonmail-go-crypto): Enable tests. [arguments]: <#:phases>: Add custom 'check phase. Change-Id: I93f022ddc0f1145e136a13ba3e8e5a8cb86538c3
This commit is contained in:
parent
f7f125ba5f
commit
f400b64826
1 changed files with 8 additions and 3 deletions
|
@ -1216,11 +1216,16 @@ (define-public go-github-com-protonmail-go-crypto
|
|||
(arguments
|
||||
(list
|
||||
#:import-path "github.com/ProtonMail/go-crypto"
|
||||
#:tests? #f ; Source-only package.
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; Source-only package.
|
||||
(delete 'build))))
|
||||
;; XXX: Workaround for go-build-system's lack of Go modules
|
||||
;; support.
|
||||
(delete 'build)
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||
(when tests?
|
||||
(with-directory-excursion (string-append "src/" import-path)
|
||||
(invoke "go" "test" "-v" "./..."))))))))
|
||||
(propagated-inputs
|
||||
(list go-github-com-cloudflare-circl
|
||||
go-golang-org-x-crypto))
|
||||
|
|
Loading…
Reference in a new issue