summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorPatrick Norton <patrick.147.norton@gmail.com>2026-01-04 21:18:04 -0500
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-07-01 21:13:00 +0100
commitf2d6326cf30ddd44fa0257befb323e3cc12889fa (patch)
treef33172fc9ae001e27f2fbea0fa985d8530663940 /gnu/packages
parent0052d0c12f6390ba989a5417d9289e76e6e25cbb (diff)
gnu: Add go-github-com-eliben-go-sentencepiece.
* gnu/packages/golang-xyz.scm (go-github-com-eliben-go-sentencepiece): New variable. Relates-to: guix/guix!5417 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/golang-xyz.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c4c5c4af80e..c27a3d0ddd2 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -10389,6 +10389,51 @@ go/cgo, rather than cgo bindings for libsigar. This package provides an
10389alternative fork of @url{https://github.com/cloudfoundry/gosigar}.") 10389alternative fork of @url{https://github.com/cloudfoundry/gosigar}.")
10390 (license license:asl2.0))) 10390 (license license:asl2.0)))
10391 10391
10392(define-public go-github-com-eliben-go-sentencepiece
10393 (package
10394 (name "go-github-com-eliben-go-sentencepiece")
10395 (version "0.7.0")
10396 (source
10397 (origin
10398 (method git-fetch)
10399 (uri (git-reference
10400 (url "https://github.com/eliben/go-sentencepiece")
10401 (commit (string-append "v" version))))
10402 (file-name (git-file-name name version))
10403 (sha256
10404 (base32 "0n5mjnhm1lhalx67j6il3kp2ylzyaxdbgmwww1wahmp78khia5l9"))))
10405 (build-system go-build-system)
10406 (arguments
10407 (list
10408 #:import-path "github.com/eliben/go-sentencepiece"
10409 #:test-flags
10410 #~(list "-skip" (string-join
10411 ;; Need MODELPATH env var to run tests.
10412 (list "TestDecodeTokens"
10413 "TestDecoder"
10414 "TestEncodeIDs"
10415 "TestInfo"
10416 "TestMergedSymbolExceedsMaxPieceLength"
10417 "TestProcessorWithText"
10418 "TestSymbolMatch"
10419 "TestVsSentencepiecePython")
10420 "|"))
10421 #:phases
10422 #~(modify-phases %standard-phases
10423 (add-after 'unpack 'remove-examples
10424 (lambda* (#:key tests? import-path #:allow-other-keys)
10425 (with-directory-excursion (string-append "src/" import-path)
10426 (delete-file "example_test.go")))))))
10427 (propagated-inputs
10428 (list go-google-golang-org-protobuf))
10429 (home-page "https://github.com/eliben/go-sentencepiece")
10430 (synopsis "Go implementation of the SentencePiece tokenizer")
10431 (description
10432 "This is a pure Go implementation of encoding and decoding text with the
10433@url{https://github.com/google/sentencepiece, @code{SentencePiece}
10434tokenizer}.")
10435 (license license:asl2.0)))
10436
10392(define-public go-github-com-elliotchance-orderedmap 10437(define-public go-github-com-elliotchance-orderedmap
10393 (package 10438 (package
10394 (name "go-github-com-elliotchance-orderedmap") 10439 (name "go-github-com-elliotchance-orderedmap")