gnu: go-github-com-lithammer-fuzzysearch: Enable tests.

* gnu/packages/golang.scm (go-github-com-lithammer-fuzzysearch): Enable tests.

Change-Id: Ib040db7321d33e2dfdefa37b59bcc095ea96dbb2
This commit is contained in:
Sharlatan Hellseher 2024-09-03 19:32:56 +01:00
parent 14abf6e19e
commit e4fcdc52bb
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -8250,12 +8250,17 @@ (define-public go-github-com-lithammer-fuzzysearch
(build-system go-build-system)
(propagated-inputs (list go-golang-org-x-text))
(arguments
(list #:import-path "github.com/lithammer/fuzzysearch"
#:tests? #f ; Source-only package.
#:phases
#~(modify-phases %standard-phases
;; Source-only package.
(delete 'build))))
(list
#:import-path "github.com/lithammer/fuzzysearch"
#:phases
#~(modify-phases %standard-phases
;; XXX: Replace when go-build-system supports nested path.
(delete 'build)
(replace 'check
(lambda* (#:key import-path tests? #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(home-page "https://github.com/lithammer/fuzzysearch")
(synopsis "Tiny and fast fuzzy search in Go")
(description