[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71843] [PATCH 18/26] gnu: Add go-github-com-jdkato-twine.
From: |
Sharlatan Hellseher |
Subject: |
[bug#71843] [PATCH 18/26] gnu: Add go-github-com-jdkato-twine. |
Date: |
Sun, 30 Jun 2024 10:05:58 +0100 |
* gnu/packages/golang-xyz.scm (go-github-com-jdkato-twine): New variable.
Change-Id: I13e55c204ab2072672a9556d7c0cac02f395116c
---
gnu/packages/golang-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 6f6167972f..2d669ec829 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -2258,6 +2258,56 @@ (define-public go-github-com-jbenet-goprocess
and stop units of work, which may receive @code{Close} signals from many
clients.")
(license license:expat)))
+(define-public go-github-com-jdkato-twine
+ (package
+ (name "go-github-com-jdkato-twine")
+ (version "0.10.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jdkato/twine")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1hbpxcrcsbi975lklrhzyzk0fzn79pxicvfyf2sckmd2n6jb4ayy"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ ;; FIXME: Adjust tests sute or check with upstram:
+ ;; === Failed
+ ;; === FAIL: nlp/segment TestGoldenRules (0.00s)
+ ;; segment_test.go:143: 25. Double quotations inside sentence
+ ;; segment_test.go:144: Actual: [She turned to him, "This is great."
she said.]
+ ;; segment_test.go:145: Actual: 2, Expected: 1
+ ;; segment_test.go:146: ===
+ #:tests? #f
+ #:go go-1.21
+ #:import-path "github.com/jdkato/twine"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-module-import-path
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (substitute* (find-files "." "\\.go$")
+ (("gopkg.in/neurosnap/sentences.v1")
+ "github.com/neurosnap/sentences")))))
+ (replace 'build
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "go" "build" "-v" "-x" "-ldflags=-s -w" "-trimpath"
"./...")))))))
+ (native-inputs
+ (list gotestsum))
+ (propagated-inputs
+ (list go-github-com-montanaflynn-stats
+ go-github-com-neurosnap-sentences
+ go-github-com-errata-ai-regexp2))
+ (home-page "https://github.com/jdkato/twine")
+ (synopsis "NLP-related string utilities")
+ (description
+ "NLP-related string utility functions for Golang.")
+ (license license:expat)))
+
(define-public go-github-com-jinzhu-copier
(package
(name "go-github-com-jinzhu-copier")
--
2.41.0
- [bug#71843] [PATCH 15/26] gnu: Add go-github-com-otiai10-copy., (continued)
- [bug#71843] [PATCH 15/26] gnu: Add go-github-com-otiai10-copy., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 12/26] gnu: Add go-github-com-gookit-color., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 13/26] gnu: Add go-atomicgo-dev-assert., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 19/26] gnu: Add go-github-com-errata-ai-ini., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 21/26] gnu: Add go-atomicgo-dev-schedule., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 10/26] gnu: Add go-tengo., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 14/26] gnu: Add go-github-com-otiai10-mint., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 22/26] gnu: Add go-atomicgo-dev-keyboard., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 17/26] gnu: Add go-github-com-errata-ai-regexp2., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 24/26] gnu: Add go-github-com-pterm-pterm., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 18/26] gnu: Add go-github-com-jdkato-twine.,
Sharlatan Hellseher <=
- [bug#71843] [PATCH 09/26] gnu: Add go-github-com-d5-tengo-v2., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 16/26] gnu: Add go-github-com-neurosnap-sentences., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 23/26] gnu: Add go-github-com-marvinjwendt-testza., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 26/26] gnu: Add go-github-com-nwaples-rardecode-v2., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 20/26] gnu: Add go-atomicgo-dev-cursor., Sharlatan Hellseher, 2024/06/30
- [bug#71843] [PATCH 25/26] gnu: go-github-com-masterminds-sprig-v3: Update to 3.2.3., Sharlatan Hellseher, 2024/06/30