guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 750104cde65fd7bb50a701e5b70b92941d4b7f6b
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Oct 29 15:08:44 2025 +0000
gnu: go-modernc-org-sqlite: Enable tests.
* gnu/packages/golang-xyz.scm (go-modernc-org-sqlite)[arguments]
<tests?>: Enable them.
<phases>: Add 'post-check-remove-test-data.
[propagated-inputs]: Remove go-modernc-org-mathutil.
[native-inputs]: Add go-github-com-google-pprof,
go-github-com-mattn-go-sqlite3, go-modernc-org-fileutil, and
go-modernc-org-mathutil.
Change-Id: I7350ce34ba61f3ffdcfa33ae6d531beba0bc7305
---
gnu/packages/golang-xyz.scm | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 72edaaa5e3..820647cfdf 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -24957,8 +24957,8 @@ parsers.")
(origin
(method git-fetch)
(uri (git-reference
- (url "https://gitlab.com/cznic/sqlite")
- (commit (string-append "v" version))))
+ (url "https://gitlab.com/cznic/sqlite")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0579vip4vn488jppjpadryxyimkw2jr8ywr4j0piqcm2zs40h509"))))
@@ -24966,8 +24966,17 @@ parsers.")
(arguments
(list
#:import-path "modernc.org/sqlite"
- ;; Tests require modernc.org/ccgo/v4/lib, which is not packaged yet
- #:tests? #f))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'check 'post-check-remove-test-data
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file-recursively "testdata")))))))
+ (native-inputs
+ (list go-github-com-google-pprof
+ go-github-com-mattn-go-sqlite3
+ go-modernc-org-fileutil
+ go-modernc-org-mathutil))
(propagated-inputs
(list go-github-com-dustin-go-humanize
go-github-com-google-uuid
@@ -24975,7 +24984,6 @@ parsers.")
go-github-com-remyoudompheng-bigfft
go-golang-org-x-sys
go-modernc-org-libc
- go-modernc-org-mathutil
go-modernc-org-memory))
(home-page "https://modernc.org/sqlite")
(synopsis "CGo-free port of SQLite")