[PATCH 00/26] Update and unbundle vale - part I

  • Done
  • quality assurance status badge
Details
One participant
  • Sharlatan Hellseher
Owner
unassigned
Submitted by
Sharlatan Hellseher
Severity
normal
S
S
Sharlatan Hellseher wrote on 29 Jun 22:11 +0200
(address . guix-patches@gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
cover.1719691458.git.sharlatanus@gmail.com
Hi Guix,

This is the first portion of patches bringing Vale - A markup-aware linter for
prose built with speed and extensibility in mind, to the latest version and
remove all bundled packages.

I don't want to hold them for a long time on my local checkout and make them
available for wide audience which may need to use them as dependencies.

My current stopping point to finlize the update is:
Toggle snippet (5 lines)
(define-public go-github-com-mholt-archiver-v4
;; v3.5.1 has an issuue with <github.com/xi2/xz> see
;; <https://github.com/mholt/archiver/issues/259>.

v3 has doubtful project <github.com/xi2/xz> as dependency, but v4 introduces
longer chain of unpacked projects.

--
Oleg

Sharlatan Hellseher (26):
gnu: Add packages/golang-math module.
gnu: Add go-github-com-montanaflynn-stats.
gnu: Add go-github-com-shopspring-decimal.
gnu: Add go-github-com-adrg-strutil.
gnu: Add go-github-com-adrg-xdg.
gnu: Add go-github-com-dsnet-golib.
gnu: Add go-github-com-dsnet-compress.
gnu: Add go-github-com-expr-lang-expr.
gnu: Add go-github-com-d5-tengo-v2.
gnu: Add go-tengo.
gnu: Add go-github-com-remeh-sizedwaitgroup.
gnu: Add go-github-com-gookit-color.
gnu: Add go-atomicgo-dev-assert.
gnu: Add go-github-com-otiai10-mint.
gnu: Add go-github-com-otiai10-copy.
gnu: Add go-github-com-neurosnap-sentences.
gnu: Add go-github-com-errata-ai-regexp2.
gnu: Add go-github-com-jdkato-twine.
gnu: Add go-github-com-errata-ai-ini.
gnu: Add go-atomicgo-dev-cursor.
gnu: Add go-atomicgo-dev-schedule.
gnu: Add go-atomicgo-dev-keyboard.
gnu: Add go-github-com-marvinjwendt-testza.
gnu: Add go-github-com-pterm-pterm.
gnu: go-github-com-masterminds-sprig-v3: Update to 3.2.3.
gnu: Add go-github-com-nwaples-rardecode-v2.

gnu/local.mk | 1 +
gnu/packages/golang-check.scm | 97 +++++
gnu/packages/golang-compression.scm | 72 +++-
gnu/packages/golang-maths.scm | 98 +++++
gnu/packages/golang-xyz.scm | 591 +++++++++++++++++++++++++++-
5 files changed, 855 insertions(+), 4 deletions(-)
create mode 100644 gnu/packages/golang-maths.scm


base-commit: f3689976da3d23b0a73cf1733da04add5e1035ee
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 06/26] gnu: Add go-github-com-dsnet-golib.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
dda5219274bf73f36406599978a6cca36e1b043e.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-dsnet-golib): New variable.

Change-Id: If3f4bc017119c05ff837414bf5a839c39feff69b
---
gnu/packages/golang-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)

Toggle diff (53 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 7b92ef052f..7e7fcc5105 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1356,6 +1356,46 @@ (define-public go-github-com-docopt-docopt-go
implementation of http://docopt.org/.")
(license license:expat))))
+(define-public go-github-com-dsnet-golib
+ (package
+ (name "go-github-com-dsnet-golib")
+ (version "1.0.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dsnet/golib")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1f314wzr16w6ix3bs7ginjkizgyl3b1r3j2gvvqzr8dv53r4s5cq"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/dsnet/golib"))
+ (home-page "https://github.com/dsnet/golib")
+ (synopsis "Collection of helper libraries for Golang")
+ (description
+ "@code{golib} is a collection of unrelated libraries.
+This package provides a following list of Golang models:
+@table @code
+@item bufpipe
+Implements a buffered pipe.
+@item cron
+Parses and runs cron schedules.
+@item hashmerge
+Merges hash checksums.
+@item jsoncs
+Implements JSON Canonicalization Scheme (JCS) as specified in RFC 8785.
+@item jsonfmt
+Implements a JSON formatter.
+@item memfile
+Implements an in-memory emulation of @code{os.File}.
+@item unitconv
+Implements string conversion functionality for unit prefixes.
+@end table")
+ (license license:bsd-3)))
+
(define-public go-github-com-dustin-gojson
(package
(name "go-github-com-dustin-gojson")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 01/26] gnu: Add packages/golang-math module.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
ff4000bbf5d27a54e9ae01a7f89f35fe54f26566.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-maths.scm: New file.
* gnu/local.mk: Add gnu/packages/golang-maths.scm to the scope.

Change-Id: Iffa3f7735e2155ecdd46f5cdeda9143c9c823322
---
gnu/local.mk | 1 +
gnu/packages/golang-maths.scm | 43 +++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+)
create mode 100644 gnu/packages/golang-maths.scm

Toggle diff (63 lines)
diff --git a/gnu/local.mk b/gnu/local.mk
index 7528a6bfee..3e4ca7ceb8 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -320,6 +320,7 @@ GNU_SYSTEM_MODULES = \
%D%/packages/golang-check.scm \
%D%/packages/golang-compression.scm \
%D%/packages/golang-crypto.scm \
+ %D%/packages/golang-maths.scm \
%D%/packages/golang-web.scm \
%D%/packages/golang-xyz.scm \
%D%/packages/gperf.scm \
diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm
new file mode 100644
index 0000000000..f7fc58ae2f
--- /dev/null
+++ b/gnu/packages/golang-maths.scm
@@ -0,0 +1,43 @@
+;;; GNU Guix --- Functional package management for GNU
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages golang-maths)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix build-system go)
+ #:use-module (guix gexp)
+ #:use-module (guix git-download)
+ #:use-module (guix packages)
+ #:use-module (gnu packages))
+
+;;; Commentary:
+;;;
+;;; Please: Try to add new module packages in alphabetic order.
+;;;
+;;; Code:
+
+;;;
+;;; Libraries:
+;;;
+
+;;;
+;;; Executables:
+;;;
+
+;;;
+;;; Avoid adding new packages to the end of this file. To reduce the chances
+;;; of a merge conflict, place them above in alphabetic order.
+;;;
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 02/26] gnu: Add go-github-com-montanaflynn-stats.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
0b982611aca08b18aabcce7740ce689eba57418b.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-maths.scm (go-github-com-montanaflynn-stats): New variable.

Change-Id: I1e131cb4ceece61e5b822178831014ed27189d9e
---
gnu/packages/golang-maths.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (42 lines)
diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm
index f7fc58ae2f..dfb29abea4 100644
--- a/gnu/packages/golang-maths.scm
+++ b/gnu/packages/golang-maths.scm
@@ -1,4 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -33,6 +34,29 @@ (define-module (gnu packages golang-maths)
;;; Libraries:
;;;
+(define-public go-github-com-montanaflynn-stats
+ (package
+ (name "go-github-com-montanaflynn-stats")
+ (version "0.7.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/montanaflynn/stats")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0y38cvp7r6fb6291k82j781dbykx00mxw8ca0v9d0fijzc1x81fi"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/montanaflynn/stats"))
+ (home-page "https://github.com/montanaflynn/stats")
+ (synopsis "Statistics library for Golang")
+ (description
+ "This package provides a statistical library for Golang.")
+ (license license:expat)))
+
;;;
;;; Executables:
;;;
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 03/26] gnu: Add go-github-com-shopspring-decimal.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
37afe904015124d64226e5b55c0d70488d2cceba.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-maths.scm (go-github-com-shopspring-decimal): New variable.

Change-Id: I52ba58d05be9f631e5c53ccf7c30a977d7fe66b3
---
gnu/packages/golang-maths.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Toggle diff (44 lines)
diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm
index dfb29abea4..2348255119 100644
--- a/gnu/packages/golang-maths.scm
+++ b/gnu/packages/golang-maths.scm
@@ -57,6 +57,37 @@ (define-public go-github-com-montanaflynn-stats
"This package provides a statistical library for Golang.")
(license license:expat)))
+(define-public go-github-com-shopspring-decimal
+ (package
+ (name "go-github-com-shopspring-decimal")
+ (version "1.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/shopspring/decimal")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1p1iz0ybsjvc8k3w6lf92drs51fgrcbz0ib1p4ihp3gmdq5rnzjk"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/shopspring/decimal"))
+ (home-page "https://github.com/shopspring/decimal")
+ (synopsis "Arbitrary-precision fixed-point decimal numbers in Golang")
+ (description
+ "Package decimal implements an arbitrary precision fixed-point decimal.
+Features:
+@itemize
+@item the zero-value is 0, and is safe to use without initialization
+@item addition, subtraction, multiplication with no loss of precision
+@item division with specified precision
+@item database/sql serialization/deserialization
+@item JSON and XML serialization/deserialization
+@end itemize")
+ (license license:expat)))
+
;;;
;;; Executables:
;;;
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 11/26] gnu: Add go-github-com-remeh-sizedwaitgroup.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
d8d170cb160181ec1063c537ab734276d57d4606.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-remeh-sizedwaitgroup): New variable.

Change-Id: Icabe407a0aefef2728e331be87e239b7683512cd
---
gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

Toggle diff (40 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 0208063845..e7fabd6b94 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3663,6 +3663,33 @@ (define-public go-github-com-rcrowley-go-metrics
(home-page "https://github.com/rcrowley/go-metrics")
(license license:bsd-2))))
+(define-public go-github-com-remeh-sizedwaitgroup
+ (package
+ (name "go-github-com-remeh-sizedwaitgroup")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/remeh/sizedwaitgroup")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1xwdzby27xzcghsqhli3il165iz3vkx3g4abgvkl99wysyhcvn0a"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/remeh/sizedwaitgroup"))
+ (home-page "https://github.com/remeh/sizedwaitgroup")
+ (synopsis "Goroutines limit amount implementation of standard @code{sync.WaitGroup}")
+ (description
+ "This package implements a feature of limiting the maximum number of
+concurrently started routines which has the same role and API as
+@code{sync.WaitGroup}. It could for example be used to start multiples
+routines querying a database but without sending too much queries in order to
+not overload the given database.")
+ (license license:expat)))
+
(define-public go-github-com-schollz-progressbar-v3
(package
(name "go-github-com-schollz-progressbar-v3")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 04/26] gnu: Add go-github-com-adrg-strutil.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
c8705f6053480d5df4c35822a6d1657cc5f77858.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-adrg-strutil): New variable.

Change-Id: I86addc399471f4766a3beb7725832b6b13435fce
---
gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)

Toggle diff (39 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index dafa4b2904..ae3eda6936 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -290,6 +290,32 @@ (define-public go-github-com-a8m-envsubst
substitution.")
(license license:expat)))
+(define-public go-github-com-adrg-strutil
+ (package
+ (name "go-github-com-adrg-strutil")
+ (version "0.3.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/adrg/strutil")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0xkjzjllv8b2m3lgn66cb09b0f5xqy2bk8ny3lkn4z0ywlchawj9"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/adrg/strutil"))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (home-page "https://github.com/adrg/strutil")
+ (synopsis "Golang string utility functions")
+ (description
+ "Package strutil provides string metrics for calculating string
+similarity as well as other string utility functions.")
+ (license license:expat)))
+
(define-public go-github-com-alecthomas-chroma
(package
(name "go-github-com-alecthomas-chroma")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 05/26] gnu: Add go-github-com-adrg-xdg.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
811c4a96a14510dd24f1879dd5244b19cb7ce060.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-adrg-xdg): New variable.

Change-Id: I6a7576d45c84e864d6db915784e32606b1008710
---
gnu/packages/golang-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)

Toggle diff (53 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index ae3eda6936..7b92ef052f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -316,6 +316,46 @@ (define-public go-github-com-adrg-strutil
similarity as well as other string utility functions.")
(license license:expat)))
+(define-public go-github-com-adrg-xdg
+ (package
+ (name "go-github-com-adrg-xdg")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/adrg/xdg")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1xbkb8wmr6phj2ppr75akc58jdzrv20gc3mkxa1mmb968isy8s6c"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/adrg/xdg"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Tests need HOME to be set: could not create any of the following
+ ;; paths: /homeless-shelter/.local/data,
+ ;; /homeless-shelter/.local/data, /usr/share
+ (add-before 'check 'set-home
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (propagated-inputs
+ (list go-golang-org-x-sys))
+ (home-page "https://github.com/adrg/xdg")
+ (synopsis "XDG specification implementation for Golang")
+ (description
+ "Package xdg provides an implementation of the @acronym{XDG, X Desktop
+Group} Base Directory Specification. The specification defines a set of
+standard paths for storing application files including data and configuration
+files. For portability and flexibility reasons, applications should use the
+XDG defined locations instead of hardcoding paths. The package also includes
+the locations of well known user directories.")
+ (license license:expat)))
+
(define-public go-github-com-alecthomas-chroma
(package
(name "go-github-com-alecthomas-chroma")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 12/26] gnu: Add go-github-com-gookit-color.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
b369851f4f180ef1b5d2e852b75b25b9c6da71c1.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-gookit-color): New variable.

Change-Id: I7caa860ae1605fff0da7490ec46ff816cad38143
---
gnu/packages/golang-xyz.scm | 61 +++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)

Toggle diff (74 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index e7fabd6b94..78bc6dd71b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1772,6 +1772,67 @@ (define-public go-github-com-gobwas-glob
"This package provides a Go implementation of globs.")
(license license:expat)))
+(define-public go-github-com-gookit-color
+ (package
+ (name "go-github-com-gookit-color")
+ (version "1.5.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gookit/color")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "012naz084chvdqzrrzv9pklqfh259hi2jcp2f3n39fppvjwmzgkf"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.21
+ #:import-path "github.com/gookit/color"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-failing-tests
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ ;; Error: Received unexpected
+ ;; error: open README.md: permission denied.
+ ;; Reported upstream, see
+ ;; <https://github.com/gookit/color/pull/91>.
+ (substitute* "utils_test.go"
+ (("os.O_WRONLY") "os.O_RDONLY"))))))))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (propagated-inputs
+ (list go-github-com-xo-terminfo
+ go-golang-org-x-sys))
+ (home-page "https://github.com/gookit/color")
+ (synopsis "Terminal color rendering library")
+ (description
+ "This package provides a command-line color library with 16/256/True
+color support, universal API methods and Windows support.
+
+Features:
+@itemize
+@item supports rich color output: 16-color (4-bit), 256-color (8-bit), true
+color (24-bit, RGB)
+@item support converts HEX HSL value to RGB color
+@item generic API methods: @code{Print}, @code{Printf}, @code{Println},
+@code{Sprint}, @code{Sprintf}
+@item supports HTML tag-style color rendering, such as @code{<green>message</>
+<fg=red;bg=blue>text</>}
+@item basic colors: @code{Bold}, @code{Black}, @code{White}, @code{Gray},
+@code{Red}, @code{Green}, @code{Yellow}, @code{Blue}, @code{Magenta},
+@code{Cyan}
+@item additional styles: @code{Info}, @code{Note}, @code{Light}, @code{Error},
+@code{Danger}, @code{Notice}, @code{Success}, @code{Comment}, @code{Primary},
+@code{Warning}, @code{Question}, @code{Secondary}
+@item support by set @code{NO_COLOR} for disable color or use
+@code{FORCE_COLOR} for force open color render
+@item support RGB, 256, 16 color conversion
+@end itemize")
+ (license license:expat)))
+
(define-public go-github-com-hashicorp-errwrap
(package
(name "go-github-com-hashicorp-errwrap")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 07/26] gnu: Add go-github-com-dsnet-compress.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
f65f28a6fa903da211af0b3d72d50079dfc6279a.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-compression.scm (go-github-com-dsnet-compress): New variable.

Change-Id: I232f2d8cc6bb5eb4c850f233b2e2788d0f2fb35b
---
gnu/packages/golang-compression.scm | 50 +++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)

Toggle diff (63 lines)
diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm
index ddeb65a967..85b2e3505b 100644
--- a/gnu/packages/golang-compression.scm
+++ b/gnu/packages/golang-compression.scm
@@ -63,6 +63,56 @@ (define-public go-github-com-andybalholm-brotli
@url{https://github.com/andybalholm/c2go,https://github.com/andybalholm/c2go}.")
(license license:expat)))
+(define-public go-github-com-dsnet-compress
+ (package
+ (name "go-github-com-dsnet-compress")
+ (version "0.0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dsnet/compress")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1wwjaymzb1xxq3ybch3nwn72xhi2s40cvz0cl986yad3w1xwzj91"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/dsnet/compress"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Testdata directories contains some compressed files requiring
+ ;; for running tests but not required on run time.
+ (add-after 'check 'remove-testdata
+ (lambda* (#:key import-path #:allow-other-keys)
+ (delete-file-recursively
+ (string-append "src/" import-path "/bzip2/testdata"))
+ (delete-file-recursively
+ (string-append "src/" import-path "/brotli/testdata"))
+ (delete-file-recursively
+ (string-append "src/" import-path "/testdata")))))))
+ (propagated-inputs
+ (list go-github-com-dsnet-golib
+ go-github-com-klauspost-compress
+ go-github-com-ulikunitz-xz))
+ (home-page "https://github.com/dsnet/compress")
+ (synopsis "Collection of compression libraries for Golang")
+ (description
+ "Package compress is a collection of compression libraries implementing
+Golang moduels:
+@table @code
+@item brotli
+Implements the Brotli format, described in RFC 7932.
+@item bzip2
+Implements the BZip2 compressed data format.
+@item flate
+Implements the DEFLATE format, described in RFC 1951.
+@item xflate
+Implements the XFLATE format, an random-access extension to DEFLATE.
+@end table")
+ (license license:bsd-3)))
+
(define-public go-github-com-golang-snappy
(package
(name "go-github-com-golang-snappy")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 15/26] gnu: Add go-github-com-otiai10-copy.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
168ffba6869b57844793d582dbf605025121e693.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-otiai10-copy): New variable.

Change-Id: Ia1e9e2180f668546a775c6d45ad316303ae310d8
---
gnu/packages/golang-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 78bc6dd71b..944d5f93f8 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3563,6 +3563,44 @@ (define-public go-github-com-orisano-pixelmatch
included in this package.")
(license license:expat)))
+(define-public go-github-com-otiai10-copy
+ (package
+ (name "go-github-com-otiai10-copy")
+ (version "1.14.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/otiai10/copy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0fv4cwk4k5fsd3hq5akqxrd5qxj9qm6a2wlp6s1knblhzkm1jxzb"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.21
+ #:import-path "github.com/otiai10/copy"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'make-test-directory-writable
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (for-each make-file-writable (find-files "./test")))))
+ (add-after 'check 'remove-test-data
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file-recursively "./test")))))))
+ (native-inputs
+ (list go-github-com-otiai10-mint))
+ (propagated-inputs
+ (list go-golang-org-x-sync go-golang-org-x-sys))
+ (home-page "https://github.com/otiai10/copy")
+ (synopsis "Go copy directory recursively")
+ (description
+ "This package implments recursive copy functinoality for directory.")
+ (license license:expat)))
+
(define-public go-github-com-pbnjay-memory
(let ((commit "7b4eea64cf580186c0eceb10dc94ba3a098af46c")
(revision "2"))
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 08/26] gnu: Add go-github-com-expr-lang-expr.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
085e4c9d3005214f6bc8d4aafce2ff7c0f2bb222.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-expr-lang-expr): New variable.

Change-Id: I580e3c664322565d506261ec789ddfe05faa764e
---
gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)

Toggle diff (39 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 7e7fcc5105..5cbe8b83fd 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1457,6 +1457,32 @@ (define-public go-github-com-elliotchance-orderedmap
for @code{Set}, @code{Get}, @code{Delete} and @code{Len}.")
(license license:expat)))
+(define-public go-github-com-expr-lang-expr
+ (package
+ (name "go-github-com-expr-lang-expr")
+ (version "1.16.9")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/expr-lang/expr")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "08p7gcxm7psgn1rzhhy2s2va59ssy77x8wd706gdp2pif7wln883"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.21
+ #:import-path "github.com/expr-lang/expr"))
+ (home-page "https://expr-lang.org/")
+ (synopsis "Expression language and expression evaluation for Go")
+ (description
+ "The package @strong{Expr} provides a Go-centric expression language
+designed to deliver dynamic configurations with unparalleled accuracy, safety,
+and speed.")
+ (license license:expat)))
+
(define-public go-github-com-facette-natsort
(package
(name "go-github-com-facette-natsort")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 10/26] gnu: Add go-tengo.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
8437e6cdbac666f928934c240ab156413ce3821f.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-tengo): New variable.

Change-Id: I8fb24d0bdd4eccb2da5f584edfec9b9ba1a9c4d5
---
gnu/packages/golang-xyz.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)

Toggle diff (27 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index d3afae5441..0208063845 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4659,6 +4659,20 @@ (define-public go-pixelmatch
"This package provides a CLI build from the
go-github-com-orisano-pixelmatch source.")))
+(define-public go-tengo
+ (package
+ (inherit go-github-com-d5-tengo-v2)
+ (name "tengo")
+ (arguments
+ (list
+ #:import-path "github.com/d5/tengo/cmd/tengo"
+ #:unpack-path "github.com/d5/tengo"
+ #:install-source? #f))
+ (description
+ (string-append (package-description go-github-com-d5-tengo-v2)
+ "\nThis package provides an command line interface (CLI)
+tool."))))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 19/26] gnu: Add go-github-com-errata-ai-ini.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
ed83ca2acb984d84359bc3b825a992b557299e80.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-errata-ai-ini): New variable.

Change-Id: Ic97b0152b10a3b3dc88cf5a617b26427058bf1f5
---
gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

Toggle diff (50 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 2d669ec829..0f7d462816 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1500,6 +1500,43 @@ (define-public go-github-com-elliotchance-orderedmap
for @code{Set}, @code{Get}, @code{Delete} and @code{Len}.")
(license license:expat)))
+(define-public go-github-com-errata-ai-ini
+ (package
+ (name "go-github-com-errata-ai-ini")
+ (version "1.63.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/errata-ai/ini")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0zs9dwxh8mzxm1zfck4ghs7hma1lz5ajh98kmyh888rn3npvrnm5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/errata-ai/ini"))
+ (home-page "https://github.com/errata-ai/ini")
+ (synopsis "INI file read and write functionality in Golang")
+ (description
+ "This Package provides a functionality of INI file read and write,
+implementing features:
+@itemize
+@item load from multiple data sources(file, @code{[]byte}, @code{io.Reader}
+and @code{io.ReadCloser}) with overwrites
+@item read with recursion values
+@item read with parent-child sections
+@item read with auto-increment key names
+@item read with multiple-line values
+@item read with tons of helper methods
+@item read and convert values to Go types
+@item read and WRITE comments of sections and keys
+@item manipulate sections, keys and comments with ease
+@item keep sections and keys in order as you parse and save
+@end itemize")
+ (license license:asl2.0)))
+
(define-public go-github-com-errata-ai-regexp2
(package
(inherit go-github-com-dlclark-regexp2)
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 13/26] gnu: Add go-atomicgo-dev-assert.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
655aa59eb86dc7a458f0b3e49f1d1186b728e043.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-check.scm (go-atomicgo-dev-assert): New variable.

Change-Id: I987bdc50978da3cb6758d99bb4330e0a3bf3d14a
---
gnu/packages/golang-check.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

Toggle diff (40 lines)
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index dd0b71ff13..00ea185cbc 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -62,6 +62,33 @@ (define-module (gnu packages golang-check)
;;; Libraries:
;;;
+(define-public go-atomicgo-dev-assert
+ (package
+ (name "go-atomicgo-dev-assert")
+ (version "0.0.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/atomicgo/assert")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ra5bx3w6vynwbxgsz5knibk2xwmfi6654fsi29zsmk77f39g8vv"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.21
+ #:import-path "atomicgo.dev/assert"))
+ (home-page "https://atomicgo.dev/assert")
+ (synopsis "Go package with tons of assertions")
+ (description
+ "Package assert provides obj set of assertion functions. Every assertion
+function returns obj boolean. This package does not integrate into the
+testing package automatically and requires to check the returning boolean
+value and call @code{t.Fatal()} if the assertion fails.")
+ (license license:expat)))
+
(define-public go-github-com-alecthomas-assert-v2
(package
(name "go-github-com-alecthomas-assert-v2")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 14/26] gnu: Add go-github-com-otiai10-mint.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
b105baf9b02c63bc9156d30cbbd731a6641f29c6.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-check.scm (go-github-com-otiai10-mint): New variable.

Change-Id: I2b203256756bf9dbeb838e2b289f4ffb9c902404
---
gnu/packages/golang-check.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 00ea185cbc..be282ee3e9 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -697,6 +697,31 @@ (define-public go-github-com-onsi-gomega
framework.")
(license license:expat)))
+(define-public go-github-com-otiai10-mint
+ (package
+ (name "go-github-com-otiai10-mint")
+ (version "1.6.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/otiai10/mint")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0g5zhz4znp68427p2a1yvrxbq90y7caagdd7zsb4iygnhdszfm7w"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.21
+ #:import-path "github.com/otiai10/mint"))
+ (home-page "https://github.com/otiai10/mint")
+ (synopsis "Minimal assertion for Golang testing framework")
+ (description
+ "Mint (@code{mint.Mint}) is wrapper for @code{*testing.T} blending
+testing type to omit repeated @code{t}.")
+ (license license:expat)))
+
(define-public go-github-com-pkg-profile
(package
(name "go-github-com-pkg-profile")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:06 +0200
[PATCH 21/26] gnu: Add go-atomicgo-dev-schedule.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
2256b28be7d2dad7c93247ef5e761fd5acc1025f.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-atomicgo-dev-schedule): New variable.

Change-Id: Iee83258d43320bbd99170c9bcb21f7d6984366bc
---
gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 4bdcc05c47..f836449d54 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -111,6 +111,31 @@ (define-public go-atomicgo-dev-cursor
any kind.")
(license license:expat)))
+(define-public go-atomicgo-dev-schedule
+ (package
+ (name "go-atomicgo-dev-schedule")
+ (version "0.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/atomicgo/schedule")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "13zrmf9jagqjvjjckyqlvr889y2gxf22iz42l6j2zmgy9klbn6vl"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.18
+ #:import-path "atomicgo.dev/schedule"))
+ (home-page "https://atomicgo.dev/schedule")
+ (synopsis "Easily schedule non-blocking tasks in Golang")
+ (description
+ "This package provides a simple scheduler which, can run a function at a
+given time, in a given duration, or repeatedly at a given interval.")
+ (license license:expat)))
+
(define-public go-bazil-org-fuse
(package
(name "go-bazil-org-fuse")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 16/26] gnu: Add go-github-com-neurosnap-sentences.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
6b0987ae149f912be748a7ee8a63aeec5fabb156.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-neurosnap-sentences, go-sentences): New variables.

Change-Id: I56c9e6c26567cfb9a6a21f8e637ddd1465d3bb58
---
gnu/packages/golang-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)

Toggle diff (59 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 944d5f93f8..af7860781d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3438,6 +3438,31 @@ (define-public go-github-com-nbrownus-go-metrics-prometheus
registry.")
(license license:asl2.0)))
+(define-public go-github-com-neurosnap-sentences
+ (package
+ (name "go-github-com-neurosnap-sentences")
+ (version "1.1.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/neurosnap/sentences")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0qkq635x54mqzydxmifh2l0kicacgqcbkw4vli1cnwwcs0x902f2"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.21
+ #:import-path "github.com/neurosnap/sentences"))
+ (home-page "https://github.com/neurosnap/sentences")
+ (synopsis "Multilingual command line sentence tokenizer in Golang")
+ (description
+ "This package provides functionality of converting a blob of text into a
+list of sentences.")
+ (license license:expat)))
+
(define-public go-github-com-nsqio-go-diskqueue
(package
(name "go-github-com-nsqio-go-diskqueue")
@@ -4785,6 +4810,20 @@ (define-public go-pixelmatch
"This package provides a CLI build from the
go-github-com-orisano-pixelmatch source.")))
+(define-public go-sentences
+ (package
+ (inherit go-github-com-neurosnap-sentences)
+ (name "go-sentences")
+ (arguments
+ (list
+ #:import-path "github.com/neurosnap/sentences/cmd/sentences"
+ #:unpack-path "github.com/neurosnap/sentences"
+ #:install-source? #f))
+ (description
+ (string-append (package-description go-github-com-neurosnap-sentences)
+ " This package provides an command line interface (CLI)
+tool."))))
+
(define-public go-tengo
(package
(inherit go-github-com-d5-tengo-v2)
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 09/26] gnu: Add go-github-com-d5-tengo-v2.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
b214e786d30b8caa1c8b5a3aceed6f26e4262950.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-d5-tengo-v2): New variable.

Change-Id: I714223a90deb696320c57f0281a8787e1cb6c2c4
---
gnu/packages/golang-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)

Toggle diff (56 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 5cbe8b83fd..d3afae5441 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1157,6 +1157,49 @@ (define-public go-github-com-d4l3k-messagediff
structs in the Go programming language.")
(license license:expat)))
+(define-public go-github-com-d5-tengo-v2
+ (package
+ (name "go-github-com-d5-tengo-v2")
+ (version "2.17.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/d5/tengo")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "12h7fg2hj9s64hzsv5mz0pl9q1hf1lw3b5k9fr40nfqlq1bw84da"))))
+ (build-system go-build-system)
+ (outputs '("out" "doc"))
+ (arguments
+ (list
+ #:import-path "github.com/d5/tengo/v2"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-doc
+ (lambda* (#:key import-path outputs #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (let* ((data (string-append #$output:doc "/share"))
+ (doc (string-append data "/doc/" #$name "-" #$version)))
+ (copy-recursively "docs/" doc))))))))
+ (home-page "https://github.com/d5/tengo")
+ (synopsis "Script language for Go")
+ (description
+ "Tengo is a small, dynamic, fast, secure script language for Go.
+Features:
+@itemize
+@item simple and highly readable syntax
+@item dynamic typing with type coercion
+@item higher-order functions and closures
+@item immutable values
+@item securely embeddable and extensible
+@item compiler/runtime written in native Go (no external deps or cgo)
+@item executable as a standalone language/REPL
+@item use cases: rules engine, state machine, data pipeline, transpiler
+@end itemize")
+ (license license:expat)))
+
(define-public go-github-com-danwakefield-fnmatch
(let ((commit "cbb64ac3d964b81592e64f957ad53df015803288")
(revision "0"))
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:06 +0200
[PATCH 22/26] gnu: Add go-atomicgo-dev-keyboard.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
854c8b073f800f2fd001388daed9d5ada622e812.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-atomicgo-dev-keyboard): New variable.

Change-Id: I335f43f06009d188c4e3278ea00a1568a3be9235
---
gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Toggle diff (44 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index f836449d54..7033618295 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -111,6 +111,37 @@ (define-public go-atomicgo-dev-cursor
any kind.")
(license license:expat)))
+(define-public go-atomicgo-dev-keyboard
+ (package
+ (name "go-atomicgo-dev-keyboard")
+ (version "0.2.9")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/atomicgo/keyboard")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0axhs1ji87szirv91vvwy0l0h5f468pllp8zap2dpcy05krmi9jf"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ ;; Cycle: go-github-com-pterm-pterm -> go-github-com-marvinjwendt-testza
+ ;; -> go-atomicgo-dev-keyboard -> go-github-com-pterm-pterm
+ #:tests? #f
+ #:import-path "atomicgo.dev/keyboard"))
+ (propagated-inputs
+ (list go-github-com-containerd-console))
+ (home-page "https://atomicgo.dev/keyboard")
+ (synopsis "Read keyboard events in CLI applications")
+ (description
+ "This package provides a functionality to read key presses from the keyboard,
+while in a terminal application, which may be combined to check for ctrl+c,
+alt+4, ctrl-shift, alt+ctrl+right, etc. It can also be used to
+simulate (mock) keypresses for CI testing.")
+ (license license:expat)))
+
(define-public go-atomicgo-dev-schedule
(package
(name "go-atomicgo-dev-schedule")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 17/26] gnu: Add go-github-com-errata-ai-regexp2.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
f02567772103238f0503fa9a26d6802955839148.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-errata-ai-regexp2): New variable.

Change-Id: If9af0a91da1d7a08767dea4614ece9fd620a143a
---
gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (37 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index af7860781d..6f6167972f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1500,6 +1500,30 @@ (define-public go-github-com-elliotchance-orderedmap
for @code{Set}, @code{Get}, @code{Delete} and @code{Len}.")
(license license:expat)))
+(define-public go-github-com-errata-ai-regexp2
+ (package
+ (inherit go-github-com-dlclark-regexp2)
+ (name "go-github-com-errata-ai-regexp2")
+ (version "1.7.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/errata-ai/regexp2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0p28af5c7dn4knnksl9dxjb44cicsmadzb8kwzyyf20kr7hrq53q"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/errata-ai/regexp2"))
+ (home-page "https://github.com/errata-ai/regexp2")
+ (description
+ (string-append (package-description go-github-com-dlclark-regexp2)
+ " This package is a fork of dlclark/regexp2 providing a
+more similar API to regexp."))))
+
(define-public go-github-com-expr-lang-expr
(package
(name "go-github-com-expr-lang-expr")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:05 +0200
[PATCH 18/26] gnu: Add go-github-com-jdkato-twine.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
ed2b1a8b7ad1ff4368aa5bec16d6d45d66a3c862.1719691458.git.sharlatanus@gmail.com
* 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(+)

Toggle diff (63 lines)
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
S
S
Sharlatan Hellseher wrote on 30 Jun 11:06 +0200
[PATCH 20/26] gnu: Add go-atomicgo-dev-cursor.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
bfebab6f37f7f9fce164aa6896f2053d59229ed7.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-atomicgo-dev-cursor): New variable.

Change-Id: I7d742bf6056b3169999157af55cc1c002e6aceb9
---
gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)

Toggle diff (39 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 0f7d462816..4bdcc05c47 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -85,6 +85,32 @@ (define-module (gnu packages golang-xyz)
;;; Libraries:
;;;
+(define-public go-atomicgo-dev-cursor
+ (package
+ (name "go-atomicgo-dev-cursor")
+ (version "0.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/atomicgo/cursor")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ds85nyd3dnjr961x9g5kflx1qdb92vn7n6wc4jbk0fjjzbrnh5s"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "atomicgo.dev/cursor"))
+ (home-page "https://atomicgo.dev/cursor")
+ (synopsis "Moving terminal cursor in Golang")
+ (description
+ "Package cursor contains cross-platform methods to move the terminal cursor in
+different directions. This package can be used to create interactive CLI tools
+and games, live charts, algorithm visualizations and other updatable output of
+any kind.")
+ (license license:expat)))
+
(define-public go-bazil-org-fuse
(package
(name "go-bazil-org-fuse")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:06 +0200
[PATCH 23/26] gnu: Add go-github-com-marvinjwendt-testza.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
1cb2e57a76f46964b45b99702b2954ad44ff0808.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-check.scm (go-github-com-marvinjwendt-testza): New variable.

Change-Id: I7aae5264286beda3462fd17304a68d62fdcd3cdb
---
gnu/packages/golang-check.scm | 45 +++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)

Toggle diff (58 lines)
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index be282ee3e9..ddf2393406 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -604,6 +604,51 @@ (define-public go-github-com-jbenet-go-cienv
differently.")
(license license:expat)))
+(define-public go-github-com-marvinjwendt-testza
+ (package
+ (name "go-github-com-marvinjwendt-testza")
+ (version "0.5.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/MarvinJWendt/testza")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0mqvs9142wx3a352yj0zxcm8f3mclyqzzxjlpn1rsb3vrskgs8v9"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.21
+ #:import-path "github.com/MarvinJWendt/testza"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; An error that should be nil is not nil. Error message: "creating
+ ;; snapshot failed: <...> permission denied
+ (add-before 'check 'writable-test-file
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/"
+ import-path
+ "/testdata/snapshots")
+ (for-each make-file-writable
+ (list "TestSnapshotCreate_file_content.testza"
+ "TestSnapshotCreate_file_content_string.testza"))))))))
+ (propagated-inputs
+ (list go-atomicgo-dev-assert
+ go-github-com-sergi-go-diff
+ go-github-com-davecgh-go-spew
+ go-github-com-klauspost-cpuid-v2
+ go-github-com-pterm-pterm))
+ (home-page "https://github.com/MarvinJWendt/testza")
+ (synopsis "Full-featured test framework for Golang")
+ (description
+ "Package testza is a full-featured testing framework for Go. It
+integrates with the default test runner, so you can use it with the standard
+@code{go test} tool. Testza contains easy to use methods, like assertions,
+output capturing, mocking, and much more.")
+ (license license:expat)))
+
(define-public go-github-com-onsi-ginkgo
(package
(name "go-github-com-onsi-ginkgo")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:06 +0200
[PATCH 24/26] gnu: Add go-github-com-pterm-pterm.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
d75c955357c9eea98727d082b883dcb9977e1f29.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-pterm-pterm): New variable.

Change-Id: I6da814b83833224380a5dd08da9cf1562eb33791
---
gnu/packages/golang-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 7033618295..80d68f2fd3 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3950,6 +3950,44 @@ (define-public go-github-com-prometheus-client-model
(home-page "https://github.com/prometheus/client_model")
(license license:asl2.0)))
+(define-public go-github-com-pterm-pterm
+ (package
+ (name "go-github-com-pterm-pterm")
+ (version "0.12.79")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pterm/pterm")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0xvc4ywc2998r8vsi3zpp49z04kc79q60bsvxv88cjvamxfjxrvk"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ ;; Cycle: go-github-com-pterm-pterm -> go-github-com-marvinjwendt-testza
+ ;; -> go-github-com-pterm-pterm
+ #:tests? #f
+ #:go go-1.21
+ #:import-path "github.com/pterm/pterm"))
+ (propagated-inputs
+ (list go-atomicgo-dev-cursor
+ go-atomicgo-dev-keyboard
+ go-atomicgo-dev-schedule
+ go-github-com-gookit-color
+ go-github-com-lithammer-fuzzysearch
+ go-github-com-mattn-go-runewidth
+ go-golang-org-x-term
+ go-golang-org-x-text))
+ (home-page "https://github.com/pterm/pterm")
+ (synopsis "Configurable consol outputs in Golang")
+ (description
+ "Package pterm is a modern go module to beautify console output. It can be used
+without configuration, but if desired, everything can be customized down to the
+smallest detail.")
+ (license license:expat)))
+
(define-public go-github-com-rcrowley-go-metrics
(let ((commit "cac0b30c2563378d434b5af411844adff8e32960")
(revision "2"))
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:06 +0200
[PATCH 25/26] gnu: go-github-com-masterminds-sprig-v3: Update to 3.2.3.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
171087d3e86a7373dddf907a72da18ce1114b9b0.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-xyz.scm (go-github-com-masterminds-sprig-v3):
Update to 3.2.3.

Change-Id: I95c42ca42a09e0c5e79d5c631606d8e48ceafe43
---
gnu/packages/golang-xyz.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Toggle diff (40 lines)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 80d68f2fd3..54b9c45ed6 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -69,6 +69,7 @@ (define-module (gnu packages golang-xyz)
#:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression)
#:use-module (gnu packages golang-crypto)
+ #:use-module (gnu packages golang-maths)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages linux)
#:use-module (gnu packages specifications))
@@ -2876,7 +2877,7 @@ (define-public go-github-com-masterminds-semver-v3
(define-public go-github-com-masterminds-sprig-v3
(package
(name "go-github-com-masterminds-sprig-v3")
- (version "3.1.0")
+ (version "3.2.3")
(source
(origin
(method git-fetch)
@@ -2885,7 +2886,7 @@ (define-public go-github-com-masterminds-sprig-v3
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0wwi8n2adjc5jlga25lqq0hrz4jcgd5vpll68y2dfji034caaq18"))))
+ (base32 "1gkwalx8j8h1jdhk6dz8bq8zp7vivxvcivr83dcq0h6nrn4xjqnl"))))
(build-system go-build-system)
(arguments
(list
@@ -2908,6 +2909,7 @@ (define-public go-github-com-masterminds-sprig-v3
go-github-com-masterminds-semver-v3
go-github-com-mitchellh-copystructure
go-github-com-mitchellh-reflectwalk
+ go-github-com-shopspring-decimal
go-github-com-spf13-cast
go-golang-org-x-crypto))
(home-page "https://github.com/Masterminds/sprig/")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 30 Jun 11:06 +0200
[PATCH 26/26] gnu: Add go-github-com-nwaples-rardecode-v2.
(address . 71843@debbugs.gnu.org)(name . Sharlatan Hellseher)(address . sharlatanus@gmail.com)
272afa5487d893d5967fcee8632322933c340211.1719691458.git.sharlatanus@gmail.com
* gnu/packages/golang-compression.scm (go-github-com-nwaples-rardecode):
Change version to 1.1.3 for future inheritance of go-github-com-nwaples-rardecode-v2.
(go-github-com-nwaples-rardecode-v2): New variable.

Change-Id: Ifc92ac27fbcd01f7cfced9239765d41108d6f373
---
gnu/packages/golang-compression.scm | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)

Toggle diff (49 lines)
diff --git a/gnu/packages/golang-compression.scm b/gnu/packages/golang-compression.scm
index 85b2e3505b..67ae28abe5 100644
--- a/gnu/packages/golang-compression.scm
+++ b/gnu/packages/golang-compression.scm
@@ -221,7 +221,7 @@ (define-public go-github-com-klauspost-pgzip
(define-public go-github-com-nwaples-rardecode
(package
(name "go-github-com-nwaples-rardecode")
- (version "2.0.0-beta.2")
+ (version "1.1.3")
(source
(origin
(method git-fetch)
@@ -230,7 +230,7 @@ (define-public go-github-com-nwaples-rardecode
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1344mxfdgs5fps6mqxk6352arrfszi33kmq394rgmqpf4394f1y7"))))
+ (base32 "0s00b8a9gppka3yxkxh7z5wy0ahygl8wbb0fbyx2r0rj879a1c2z"))))
(build-system go-build-system)
(arguments
(list
@@ -241,6 +241,24 @@ (define-public go-github-com-nwaples-rardecode
"This package provides a library for reading RAR archives with Golang.")
(license license:bsd-2)))
+(define-public go-github-com-nwaples-rardecode-v2
+ (package
+ (inherit go-github-com-nwaples-rardecode)
+ (name "go-github-com-nwaples-rardecode-v2")
+ (version "2.0.0-beta.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nwaples/rardecode")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1344mxfdgs5fps6mqxk6352arrfszi33kmq394rgmqpf4394f1y7"))))
+ (arguments
+ (list
+ #:import-path "github.com/nwaples/rardecode/v2"))))
+
(define-public go-github-com-pierrec-lz4
(package
(name "go-github-com-pierrec-lz4")
--
2.41.0
S
S
Sharlatan Hellseher wrote on 4 Jul 00:02 +0200
[PATCH 00/26] Update and unbundle vale - part I
(address . 71843-done@debbugs.gnu.org)
87ikxmdthb.fsf@gmail.com
Pushed as 2519c4cecb..ada945251c to master.

--
Oleg
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmaFyoAACgkQdtcnv/Ys
0rUbVBAAhbwM9aiGwv9PoxN+f+djAfFto6+ggIWE6omuDYmvi6N+4xGwLU7xo780
8g4ugNkDFB09b3kCTdFOsgvpLKuaTdh38Yx7nfD+O7EVOr5Av/Qv5lhDOu4wRhz+
yiidpW2XYKDTiwjRpR6e0cuQEZk6V6VWyJOFs7Jvn6dx02iXfqo84K37Epg0TW7x
cmwT+CwH0k4THaKKblhB1TjiVzbRov4Nm9/3wmlDyJ7vjyRP5m6of0FEE9Algmlq
ogEL/VJAE3E+GfZ28p0c1syqq5jZXCVzyVykgAIBZMbE2jQmmRJn8eMvEt84iYM6
a0kNAlv1UjWFeMH/uYa6rGAIP1bAb15GOVpzEUPTcnIBJr4AF0awsR02r0/CrSzN
zRYe2MNepuxc83FAA0vuYfSGJtcjxqM76PoxmI1o8EtDajbj66OKDLEFq5n0HQ9B
FHL9LEUDiByCTtDsEK0LbOhDHuYgnNv/ipZpdQC18hbcAyyYJqPMI8eQaFQzHWno
3TZfLEBT2bYtyCu+vpW/GQS3bTQeJmXVzf5qVe+xiFIwgoy1CIyd8yHYVsGMjsvG
Iv9gGXUmmFecUbCCekUorS+hpm9VpmEZ2fDzzP11t+ROiU8hnTuyBXqV5QDIRFja
nGKUii/zFFJkkuwKYnhR6mONT6+ZmMh9TDOr+vVBrOn9ghoqa/I=
=qvbZ
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 71843@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 71843
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch