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:
Sharlatan Hellseher 2024-07-27 22:44:38 +01:00
parent f7f125ba5f
commit f400b64826
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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))