me
/
guix
Archived
1
0
Fork 0

gnu: go-golang-org-x-time: Enable tests.

* gnu/packages/golang-build.scm (go-golang-org-x-time): Apply new
package style.
[arguments]: <#:phases>: Use custom 'check phase.

Change-Id: If6b9aa9198748c4b8a2fdc23cd723aec740eb533
master
Sharlatan Hellseher 2024-07-12 15:10:47 +01:00
parent b8aab45d78
commit d76e297b66
No known key found for this signature in database
GPG Key ID: 76D727BFF62CD2B5
1 changed files with 12 additions and 7 deletions

View File

@ -547,13 +547,18 @@ processing.")
(base32 "1dahq0p6zn2pd408q6hsv1jl12nqrwd1gkl3r3dysk2q0z16192v")))) (base32 "1dahq0p6zn2pd408q6hsv1jl12nqrwd1gkl3r3dysk2q0z16192v"))))
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
`(#:import-path "golang.org/x/time" (list
;; Source-only package #:import-path "golang.org/x/time"
#:tests? #f #:phases
#:phases #~(modify-phases %standard-phases
(modify-phases %standard-phases ;; XXX: Workaround for go-build-system's lack of Go modules
;; Source-only package ;; support.
(delete 'build)))) (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" "./..."))))))))
(home-page "https://godoc.org/golang.org/x/time/rate") (home-page "https://godoc.org/golang.org/x/time/rate")
(synopsis "Supplemental Go time libraries") (synopsis "Supplemental Go time libraries")
(description (description