[PATCH 01/15] gnu: Add go-github-com-leodido-go-urn.

  • Done
  • quality assurance status badge
Details
2 participants
  • Efraim Flashner
  • Joseph LaFreniere
Owner
unassigned
Submitted by
Joseph LaFreniere
Severity
normal
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:37
(address . guix-patches@gnu.org)
87361galdn.fsf@lafreniere.xyz
This is building toward github.com/x-motemen/ghq. I'm not a Go
developer and didn't find golang.scm to be entirely consistent in
its conventions, so I'm anticipating some cleanup of these patches
will be required.

--
Joseph LaFreniere
From a806f9922aaccacb30c920bacde94edcc9a630af Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 26 Jul 2020 17:34:08 -0500
Subject: [PATCH 01/15] gnu: Add go-github-com-leodido-go-urn.

* gnu/packages/golang.scm (go-github-com-leodido-go-urn): New variable.
---
gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 82573bd099..43f9a5ed74 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -480,6 +480,31 @@ jar struct to manage the cookies added to the cookie jar.")
(home-page "https://github.com/aki237/nscjar")
(license license:expat))))
+(define-public go-github-com-leodido-go-urn
+ (package
+ (name "go-github-com-leodido-go-urn")
+ (version "1.2.0")
+ (home-page "https://github.com/leodido/go-urn")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1d4g1vkhc1180l1n7q48vl84b27c7cziywml78cyijbcdz2f8vim"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/leodido/go-urn"))
+ (inputs
+ `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))
+ (synopsis "Parser for uniform resource names as seen on RFC 2141")
+ (description
+ "This package implements a parser for uniform resource names (URN) as
+specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.")
+ (license license:expat)))
+
(define-public go-github.com-jessevdk-go-flags
(package
(name "go-github.com-jessevdk-go-flags")
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:45
[PATCH 02/15] gnu: Add go-github-com-go-playground-locales.
(address . 44562@debbugs.gnu.org)
87zh3o96gi.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 9020d201f85a0d20eeab7afcff3d71b7219ef4ef Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 26 Jul 2020 20:37:37 -0500
Subject: [PATCH 02/15] gnu: Add go-github-com-go-playground-locales.

* gnu/packages/golang.scm (go-github-com-go-playground-locales): New variable.
---
gnu/packages/golang.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)

Toggle diff (47 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 43f9a5ed74..118111ffb9 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -530,6 +530,40 @@ way of specifying command line options.")
(home-page "https://github.com/jessevdk/go-flags")
(license license:bsd-3)))
+(define-public go-github-com-go-playground-locales
+ (package
+ (name "go-github-com-go-playground-locales")
+ (version "0.13.0")
+ (home-page "https://github.com/go-playground/locales")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0qydcpkvss3mf8mk3xzg6a34n8i69aydrigcl2apifrkx72jw7pf"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/go-playground/locales"))
+ (synopsis "Set of locales generated from the CLDR Unicode Project")
+ (description
+ "This package provides a set of locales generated from the
+@uref{http://cldr.unicode.org/, Unicode CLDR Project} which can be used
+independently or within an internalization (i18n) package. Its currently
+implemented features include
+
+@itemize
+@item Rules generated from the CLDR data, v31.0.3
+@item Contains Cardinal, Ordinal and Range Plural Rules
+@item Contains Month, Weekday and Timezone translations built in
+@item Contains Date & Time formatting functions
+@item Contains Number, Currency, Accounting and Percent formatting functions
+@item Supports the \"Gregorian\" calendar only
+@end itemize")
+ (license license:expat)))
+
(define-public go-gopkg.in-tomb.v2
(let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
(revision "0"))
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:46
[PATCH 03/15] gnu: Add go-github-com-go-playground-universal-translator.
(address . 44562@debbugs.gnu.org)
87wnys96ej.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 1e205805461e2474a5d403de6820dbebc9e27d6d Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 26 Jul 2020 20:42:08 -0500
Subject: [PATCH 03/15] gnu: Add
go-github-com-go-playground-universal-translator.

* gnu/packages/golang.scm (go-github-com-go-playground-universal-translator): New variable.
---
gnu/packages/golang.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 118111ffb9..9a2b30b3ab 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -564,6 +564,44 @@ implemented features include
@end itemize")
(license license:expat)))
+(define-public go-github-com-go-playground-universal-translator
+ (package
+ (name "go-github-com-go-playground-universal-translator")
+ (version "0.17.0")
+ (home-page "https://github.com/go-playground/universal-translator")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1zdiaisb32iv4x93cpbqrgx8ll7sxh4hcd2iibpswy4bwvjbjlz6"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/go-playground/universal-translator"))
+ (inputs
+ `(("go-github-com-go-playground-locales" ,go-github-com-go-playground-locales)))
+ (synopsis "Translator using Unicode CLDR data and pluralization rules")
+ (description
+ "This package offers an Internalization Translator for Go using
+@uref{http://cldr.unicode.org/, Unicode CLDR Project} data and pluralization
+rules. Its currently implemented features include
+
+@itemize
+@item Rules generated from the CLDR data, v30.0.3
+@item Contains Cardinal, Ordinal and Range Plural Rules
+@item Contains Month, Weekday and Timezone translations built in
+@item Contains Date & Time formatting functions
+@item Contains Number, Currency, Accounting and Percent formatting functions
+@item Supports the \"Gregorian\" calendar only
+@item Support loading translations from files
+@item Exporting translations to file(s), mainly for getting them
+professionally translated
+@end itemize")
+ (license license:expat)))
+
(define-public go-gopkg.in-tomb.v2
(let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
(revision "0"))
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:47
[PATCH 04/15] gnu: Add go-gopkg-in-go-playground-assert-v1.
(address . 44562@debbugs.gnu.org)
87tutw96di.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 059ad30b0b29db66a7526d4704666cc32f415362 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 26 Jul 2020 23:21:41 -0500
Subject: [PATCH 04/15] gnu: Add go-gopkg-in-go-playground-assert-v1.

* gnu/packages/golang.scm (go-gopkg-in-go-playground-assert-v1): New variable.
---
gnu/packages/golang.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9a2b30b3ab..6742404f3f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -530,6 +530,29 @@ way of specifying command line options.")
(home-page "https://github.com/jessevdk/go-flags")
(license license:bsd-3)))
+(define-public go-gopkg-in-go-playground-assert-v1
+ (package
+ (name "go-gopkg-in-go-playground-assert-v1")
+ (version "1.2.1")
+ (home-page "https://github.com/go-playground/assert")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1h4amgykpa0djwi619llr3g55p75ia0mi184h9s5zdl8l4rhn9pm"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "gopkg.in/go-playground/assert.v1"))
+ (synopsis "Basic assertion library used alongside native Go testing")
+ (description
+ "This package provides bassic assertions along with building blocks for
+custom assertions to be used alongside native Go testing.")
+ (license license:expat)))
+
(define-public go-github-com-go-playground-locales
(package
(name "go-github-com-go-playground-locales")
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:47
[PATCH 05/15] gnu: Add go-gopkg-in-go-playground-validator-v9.
(address . 44562@debbugs.gnu.org)
87r1p096cq.fsf@lafreniere.xyz
--
Joseph LaFreniere
From e4b414d320e2f77bbe07719484822cea855a57b6 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 26 Jul 2020 23:42:48 -0500
Subject: [PATCH 05/15] gnu: Add go-gopkg-in-go-playground-validator-v9.

* gnu/packages/golang.scm (go-gopkg-in-go-playground-validator-v9): New variable.
---
gnu/packages/golang.scm | 48 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)

Toggle diff (61 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 6742404f3f..32605fbc65 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -625,6 +625,54 @@ professionally translated
@end itemize")
(license license:expat)))
+(define-public go-gopkg-in-go-playground-validator-v9
+ (package
+ (name "go-gopkg-in-go-playground-validator-v9")
+ (version "9.31.0")
+ (home-page "https://gopkg.in/go-playground/validator.v9")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/go-playground/validator")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1f8c77s8kx9rip2jarv27x5s4xkcmanh4ndyhbcwvrhncs5rq061"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "gopkg.in/go-playground/validator.v9"))
+ (inputs
+ `(("go-gopkg-in-go-playground-assert-v1"
+ ,go-gopkg-in-go-playground-assert-v1)
+ ("go-github-com-go-playground-locales"
+ ,go-github-com-go-playground-locales)
+ ("go-github-com-go-playground-universal-translator"
+ ,go-github-com-go-playground-universal-translator)
+ ("go-github-com-leodido-go-urn" ,go-github-com-leodido-go-urn)))
+ (synopsis "Validator for structs and individual fields based on tags")
+ (description
+ "This package implements value validations for structs and individual
+fields based on tags. It has the following unique features:
+
+@itemize
+@item Cross Field and Cross Struct validations by using validation tags or custom validators
+@item Slice, Array and Map diving, which allows any or all levels of a multidimensional field to be validated
+@item Ability to dive into both map keys and values for validation
+@item Handles type interface by determining it's underlying type prior to validation
+@item Handles custom field types such as sql driver
+@uref{https://golang.org/src/database/sql/driver/types.go?s=1210:1293#L29,
+Valuer}
+@item Alias validation tags, which allows for mapping of several validations
+to a single tag for easier defining of validations on structs
+@item Extraction of custom defined Field Name e.g. can specify to extract the
+JSON name while validating and have it available in the resulting FieldError
+@item Customizable i18n aware error messages.
+@item Default validator for the @uref{https://github.com/gin-gonic/gin, gin}
+web framework
+@end itemize")
+ (license license:expat)))
+
(define-public go-gopkg.in-tomb.v2
(let ((commit "d5d1b5820637886def9eef33e03a27a9f166942c")
(revision "0"))
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:48
[PATCH 06/15] gnu: Add go-github-com-goccy-yaml.
(address . 44562@debbugs.gnu.org)
87o8k496be.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 922de851d989ec1ae910fd507d3de4e89969bd2c Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 26 Jul 2020 23:55:03 -0500
Subject: [PATCH 06/15] gnu: Add go-github-com-goccy-yaml.

* gnu/packages/golang.scm (go-github-com-goccy-yaml): New variable.
---
gnu/packages/golang.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 32605fbc65..a902f7cd5c 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6203,3 +6203,44 @@ JSON data to the machine.")
systems can import this package to enable running programs as services without
modifying them.")
(license license:zlib)))
+
+(define-public go-github-com-goccy-yaml
+ (package
+ (name "go-github-com-goccy-yaml")
+ (version "1.8.0")
+ (home-page "https://github.com/goccy/go-yaml")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1nps58dwkd915mx35h5f0dc05b880b4fdl6dcjxpfmmbzyinvg38"))))
+ (build-system go-build-system)
+ (arguments
+ `(#:import-path "github.com/goccy/go-yaml"))
+ (inputs
+ `(("go-github-com-fatih-color" ,go-github-com-fatih-color)
+ ("go-github-com-go-playground-locales"
+ ,go-github-com-go-playground-locales)
+ ("go-github-com-go-playground-universal-translator"
+ ,go-github-com-go-playground-universal-translator)
+ ("go-github-com-leodido-go-urn" ,go-github-com-leodido-go-urn)
+ ("go-golang-org-x-xerrors" ,go-golang-org-x-xerrors)
+ ("go-gopkg-in-go-playground-validator-v9"
+ ,go-gopkg-in-go-playground-validator-v9)))
+ (synopsis "YAML support for the Go language")
+ (description
+ "This package provides features beyond the
+@uref{https://github.com/go-yaml/yaml, defacto YAML library} including:
+
+@itemize
+@item Pretty format for error notifications
+@item Support Scanner or Lexer or Parser as public API
+@item Support Anchor and Alias to Marshaler
+@item Allow referencing elements declared in another file via anchors
+@item Extract value or AST by YAMLPath (YAMLPath is like a JSONPath)
+@end itemize")
+ (license license:expat)))
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:49
[PATCH 07/15] gnu: Add go-github-com-Songmu-gitconfig.
(address . 44562@debbugs.gnu.org)
87lff896an.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 19dd9897e0167e4bf2c73487ed4000a92a16a4f4 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Mon, 27 Jul 2020 00:12:06 -0500
Subject: [PATCH 07/15] gnu: Add go-github-com-Songmu-gitconfig.

* gnu/packages/golang.scm (go-github-com-Songmu-gitconfig): New variable.
---
gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

Toggle diff (37 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index a902f7cd5c..03f9fc46af 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6244,3 +6244,30 @@ modifying them.")
@item Extract value or AST by YAMLPath (YAMLPath is like a JSONPath)
@end itemize")
(license license:expat)))
+
+(define-public go-github-com-Songmu-gitconfig
+ (package
+ (name "go-github-com-Songmu-gitconfig")
+ (version "0.1.0")
+ (home-page "https://github.com/Songmu/gitconfig")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1y01h496a7pfj1g2bclls5b0nl3vnj7nz610jj1dzq9kxrwxk7fk"))))
+ (build-system go-build-system)
+ (arguments
+ `(#:import-path "github.com/Songmu/gitconfig"
+ ;; Package's tests appear to be hardcoded to the author's gitconfig.
+ #:tests? #f))
+ (inputs
+ `(("go-github-com-fatih-color" ,go-github-com-fatih-color)
+ ("go-github-com-goccy-yaml" ,go-github-com-goccy-yaml)
+ ("go-golang-org-x-xerrors" ,go-golang-org-x-xerrors)))
+ (synopsis "Go library to get configuration values from gitconfig.")
+ (description "@{gitconfig} is a package to get configuration values from gitconfig.")
+ (license license:expat)))
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:49
[PATCH 08/15] gnu: Add go-github-com-golangplus-fmt.
(address . 44562@debbugs.gnu.org)
87imac969w.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 6e9cdf04e9b93753c6620d63b7e13a4fb496a27c Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 8 Nov 2020 21:35:04 -0600
Subject: [PATCH 08/15] gnu: Add go-github-com-golangplus-fmt.

* gnu/packages/golang.scm (go-github-com-golangplus-fmt): New variable.
---
gnu/packages/golang.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)

Toggle diff (33 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 03f9fc46af..3eb84d675e 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -480,6 +480,26 @@ jar struct to manage the cookies added to the cookie jar.")
(home-page "https://github.com/aki237/nscjar")
(license license:expat))))
+(define-public go-github-com-golangplus-fmt
+ (package
+ (name "go-github-com-golangplus-fmt")
+ (version "1.0.0")
+ (home-page "https://github.com/golangplus/fmt")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "07d5kxz0f8ss3v46y0c8jg02sagi0wlaaijhjzzp0r462jyzqii7"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/golangplus/fmt"))
+ (synopsis "Additions to Go's standard @code{fmt} package")
+ (description "This package provides additions to Go's stdlib @code{fmt}.")
+ (license license:bsd-3)))
+
(define-public go-github-com-leodido-go-urn
(package
(name "go-github-com-leodido-go-urn")
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:50
[PATCH 09/15] gnu: Add go-github-com-golangplus-testing.
(address . 44562@debbugs.gnu.org)
87ft5g9693.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 67bd67fa71abe44a7ca629ddd53b839c23bdff6f Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 8 Nov 2020 21:35:55 -0600
Subject: [PATCH 09/15] gnu: Add go-github-com-golangplus-testing.

* gnu/packages/golang.scm (go-github-com-golangplus-testing): New variable.
---
gnu/packages/golang.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

Toggle diff (35 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 3eb84d675e..aa4edc85ec 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -500,6 +500,28 @@ jar struct to manage the cookies added to the cookie jar.")
(description "This package provides additions to Go's stdlib @code{fmt}.")
(license license:bsd-3)))
+(define-public go-github-com-golangplus-testing
+ (package
+ (name "go-github-com-golangplus-testing")
+ (version "1.0.0")
+ (home-page "https://github.com/golangplus/testing")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1a29m4zplf9m14k74lrb55dids2l17vx28sv0g3y3qcv1xygksiv"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/golangplus/testing"))
+ (inputs
+ `(("go-github-com-golangplus-fmt" ,go-github-com-golangplus-fmt)))
+ (synopsis "Additions to Go's standard testing package")
+ (description "This package provides additions to Go's stdlib testing.")
+ (license license:bsd-3)))
+
(define-public go-github-com-leodido-go-urn
(package
(name "go-github-com-leodido-go-urn")
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:50
[PATCH 10/15] gnu: Add go-github-com-daviddengcn-go-colortext.
(address . 44562@debbugs.gnu.org)
87d00k967z.fsf@lafreniere.xyz
--
Joseph LaFreniere
From e37a23dae6340f162d474dde9b929b25d53f518f Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 8 Nov 2020 21:36:52 -0600
Subject: [PATCH 10/15] gnu: Add go-github-com-daviddengcn-go-colortext.

* gnu/packages/golang.scm (go-github-com-daviddengcn-go-colortext): New variable.
---
gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

Toggle diff (40 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index aa4edc85ec..b903077ed4 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -500,6 +500,33 @@ jar struct to manage the cookies added to the cookie jar.")
(description "This package provides additions to Go's stdlib @code{fmt}.")
(license license:bsd-3)))
+(define-public go-github-com-daviddengcn-go-colortext
+ (package
+ (name "go-github-com-daviddengcn-go-colortext")
+ (version "1.0.0")
+ (home-page "https://github.com/daviddengcn/go-colortext")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0j5ldwg3a768d3nniiglghr9axj4p87k7f7asqxa1a688xvcms48"))))
+ (build-system go-build-system)
+ (native-inputs
+ `(("go-github-com-golangplus-testing" ,go-github-com-golangplus-testing)))
+ (arguments
+ '(#:import-path "github.com/daviddengcn/go-colortext"))
+ (synopsis "Change the color of console text and background")
+ (description
+ "This is a package to change the color of the text and background in the
+console, working both under Windows and other systems.
+
+Under Windows, the console APIs are used. Otherwise, ANSI texts are output.")
+ ;; dual-licensed
+ (license (list license:bsd-3 license:expat))))
+
(define-public go-github-com-golangplus-testing
(package
(name "go-github-com-golangplus-testing")
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:52
[PATCH 11/15] gnu: Add go-github-com-motemen-go-colorine.
(address . 44562@debbugs.gnu.org)
87a6vo964m.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 11f48711956f4d2804af0b442a22ddde785f00b4 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 8 Nov 2020 21:38:18 -0600
Subject: [PATCH 11/15] gnu: Add go-github-com-motemen-go-colorine.

* gnu/packages/golang.scm (go-github-com-motemen-go-colorine): New variable.
---
gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Toggle diff (38 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index b903077ed4..bdd312b48e 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -500,6 +500,31 @@ jar struct to manage the cookies added to the cookie jar.")
(description "This package provides additions to Go's stdlib @code{fmt}.")
(license license:bsd-3)))
+(define-public go-github-com-motemen-go-colorine
+ (let ((commit "45d19169413a019e4e2be69629dde5c7d92f8706")
+ (revision "0"))
+ (package
+ (name "go-github-com-motemen-go-colorine")
+ (version (git-version "0.0.0" revision commit))
+ (home-page "https://github.com/motemen/go-colorine")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1mdy6q0926s1frj027nlzlvm2qssmkpjis7ic3l2smajkzh07118"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/motemen/go-colorine"))
+ (inputs
+ `(("github.com/daviddengcn/go-colortext" ,go-github-com-daviddengcn-go-colortext)))
+ (synopsis "Simple colorized console logger for golang")
+ (description
+ "This package provides simple colorized console logger for golang.")
+ (license license:expat))))
+
(define-public go-github-com-daviddengcn-go-colortext
(package
(name "go-github-com-daviddengcn-go-colortext")
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:53
[PATCH 12/15] gnu: Add go-golang.org-x-net-html.
(address . 44562@debbugs.gnu.org)
877dqs963u.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 2ae9aa5edde3da1835e7601232b11482aab51362 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 8 Nov 2020 21:52:02 -0600
Subject: [PATCH 12/15] gnu: Add go-golang.org-x-net-html.

* gnu/packages/golang.scm (go-golang.org-x-net-html): New variable.
---
gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Toggle diff (35 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index bdd312b48e..789a8a946a 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6365,3 +6365,28 @@ modifying them.")
(synopsis "Go library to get configuration values from gitconfig.")
(description "@{gitconfig} is a package to get configuration values from gitconfig.")
(license license:expat)))
+
+(define-public go-golang.org-x-net-html
+ (let ((commit "70d85028bad349e3b72df9fa3a5069e5e866d7e2")
+ (revision "0"))
+ (package
+ (name "go-golang.org-x-net-html")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://go.googlesource.com/net")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0zrzn9jg70kzphk4p2mwhn84wsppq51y9ilcmfyg6ga5n3wbqmhm"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "golang.org/x/net/html"
+ #:unpack-path "golang.org/x/net"))
+ (synopsis "HTML5-compliant tokenizer and parser.")
+ (description
+ "This package provides an HTML5-compliant tokenizer and parser.")
+ (home-page "https://godoc.org/golang.org/x/net/html")
+ (license license:bsd-3))))
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:53
[PATCH 13/15] gnu: Add go-github-com-urfave-cli-v2.
(address . 44562@debbugs.gnu.org)
874klw9632.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 71b88b1661d3b1832f7e64d6aa3c85609addcc9e Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 8 Nov 2020 22:00:53 -0600
Subject: [PATCH 13/15] gnu: Add go-github-com-urfave-cli-v2.

* gnu/packages/golang.scm (go-github-com-urfave-cli-v2): New variable.
---
gnu/packages/golang.scm | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)

Toggle diff (39 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 789a8a946a..4e741f4504 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3379,7 +3379,7 @@ as conversion to and from @command{net.Addr}.")
(build-system go-build-system)
(arguments
'(#:import-path "github.com/urfave/cli"))
- (propagated-inputs
+ (native-inputs
`(("go-github-com-go-md2man" ,go-github-com-go-md2man)))
(home-page "https://github.com/urfave/cli")
(synopsis "Simple, fast, and fun package for building command line apps in Go")
@@ -3388,6 +3388,23 @@ building command line apps in Go. The goal is to enable developers to write
fast and distributable command line applications in an expressive way.")
(license license:expat)))
+(define-public go-github-com-urfave-cli-v2
+ (package
+ (inherit go-github-com-urfave-cli)
+ (name "go-github-com-urfave-cli-v2")
+ (version "2.3.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/urfave/cli")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "08pvn7gyfznni72xrxfh2x6xxa8ykr7l1ka278js8g8qkh71bj8l"))))
+ (arguments
+ '(#:import-path "github.com/urfave/cli/v2"))))
+
(define-public go-github-com-go-md2man
(package
(name "go-github-com-go-md2man")
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:54
[PATCH 14/15] gnu: Add go-github-com-x-motemen-ghq.
(address . 44562@debbugs.gnu.org)
871rh0962e.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 77389b438ddacdfec2b8c46182297b7bd9326be8 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Sun, 8 Nov 2020 13:11:51 -0600
Subject: [PATCH 14/15] gnu: Add go-github-com-x-motemen-ghq.

* gnu/packages/golang.scm (go-github-com-x-motemen-ghq): New variable.
---
gnu/packages/golang.scm | 45 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)

Toggle diff (62 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4e741f4504..8a45e64efa 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -58,6 +58,7 @@
#:use-module (gnu packages mp3)
#:use-module (gnu packages textutils)
#:use-module (gnu packages tls)
+ #:use-module (gnu packages version-control)
#:use-module (gnu packages web)
#:use-module (ice-9 match)
#:use-module (srfi srfi-1))
@@ -6407,3 +6408,47 @@ modifying them.")
"This package provides an HTML5-compliant tokenizer and parser.")
(home-page "https://godoc.org/golang.org/x/net/html")
(license license:bsd-3))))
+
+(define-public go-github-com-x-motemen-ghq
+ (package
+ (name "go-github-com-x-motemen-ghq")
+ (version "1.1.5")
+ (home-page "https://github.com/x-motemen/ghq")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "098fik155viylq07az7crzbgswcvhpx0hr68xpvyx0rpri792jbq"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/x-motemen/ghq"))
+ (native-inputs
+ `(("github.com/go/md2man" ,go-github-com-go-md2man)))
+ (inputs
+ `(("github.com/Songmu/gitconfig" ,go-github-com-Songmu-gitconfig)
+ ("github.com/daviddengcn/go-colortext" ,go-github-com-daviddengcn-go-colortext)
+ ("github.com/fatih/color" ,go-github-com-fatih-color)
+ ("github.com/goccy/yaml" ,go-github-com-goccy-yaml)
+ ("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty)
+ ("github.com/motemen/go-colorine" ,go-github-com-motemen-go-colorine)
+ ("github.com/saracen/walker" ,go-github-com-saracen-walker)
+ ("github.com/urfave/cli/v2" ,go-github-com-urfave-cli-v2)
+ ("golang.org/x/net/html" ,go-golang.org-x-net-html)
+ ("golang.org/x/sync/errgroup" ,go-golang.org-x-sync-errgroup)
+ ("golang.org/x/xerrors" ,go-golang-org-x-xerrors)
+ ("gopkg.in/yaml.v2" ,go-gopkg-in-yaml-v2)
+ ("perl" ,perl)))
+ (propagated-inputs
+ `(("fossil" ,fossil)
+ ("git" ,git-minimal)))
+ (synopsis "Manage remote repository clones")
+ (description
+ "code{ghq} provides a way to organize remote repository clones, like
+@code{go get} does. When you clone a remote repository by @code{ghq get}, ghq
+makes a directory under a specific root directory (by default @file{~/ghq})
+using the remote repository URL's host and path.")
+ (license license:expat)))
--
2.29.2
J
J
Joseph LaFreniere wrote on 10 Nov 2020 23:54
[PATCH 15/15] gnu: Add ghq.
(address . 44562@debbugs.gnu.org)
87y2j87rh3.fsf@lafreniere.xyz
--
Joseph LaFreniere
From 0ca73a97f71901c714dd9144f32af2d6a01c3632 Mon Sep 17 00:00:00 2001
From: Joseph LaFreniere <joseph@lafreniere.xyz>
Date: Mon, 9 Nov 2020 23:19:54 -0600
Subject: [PATCH 15/15] gnu: Add ghq.

* gnu/packages/golang.scm (ghq): New variable.
---
gnu/packages/golang.scm | 2 ++
1 file changed, 2 insertions(+)

Toggle diff (12 lines)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 8a45e64efa..36d7d1386e 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -6452,3 +6452,5 @@ modifying them.")
makes a directory under a specific root directory (by default @file{~/ghq})
using the remote repository URL's host and path.")
(license license:expat)))
+
+(define-public ghq go-github-com-x-motemen-ghq)
--
2.29.2
E
E
Efraim Flashner wrote on 3 Jan 2021 16:23
Re: [bug#44562] [PATCH 01/15] gnu: Add go-github-com-leodido-go-urn.
(name . Joseph LaFreniere)(address . joseph@lafreniere.xyz)(address . 44562@debbugs.gnu.org)
X/HhihEV7j3Di2Oq@3900XT
On Tue, Nov 10, 2020 at 04:37:56PM -0600, Joseph LaFreniere wrote:
Toggle quote (45 lines)
> This is building toward github.com/x-motemen/ghq. I'm not a Go developer
> and didn't find golang.scm to be entirely consistent in its conventions, so
> I'm anticipating some cleanup of these patches will be required.
>
> --
> Joseph LaFreniere

> From a806f9922aaccacb30c920bacde94edcc9a630af Mon Sep 17 00:00:00 2001
> From: Joseph LaFreniere <joseph@lafreniere.xyz>
> Date: Sun, 26 Jul 2020 17:34:08 -0500
> Subject: [PATCH 01/15] gnu: Add go-github-com-leodido-go-urn.
>
> * gnu/packages/golang.scm (go-github-com-leodido-go-urn): New variable.
> ---
> gnu/packages/golang.scm | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
> index 82573bd099..43f9a5ed74 100644
> --- a/gnu/packages/golang.scm
> +++ b/gnu/packages/golang.scm
> @@ -480,6 +480,31 @@ jar struct to manage the cookies added to the cookie jar.")
> (home-page "https://github.com/aki237/nscjar")
> (license license:expat))))
>
> +(define-public go-github-com-leodido-go-urn
> + (package
> + (name "go-github-com-leodido-go-urn")
> + (version "1.2.0")
> + (home-page "https://github.com/leodido/go-urn")
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url home-page)
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32 "1d4g1vkhc1180l1n7q48vl84b27c7cziywml78cyijbcdz2f8vim"))))
> + (build-system go-build-system)
> + (arguments
> + '(#:import-path "github.com/leodido/go-urn"))
> + (inputs
> + `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify)))

This one was needed only for the tests so I moved it to native-inputs

Toggle quote (14 lines)
> + (synopsis "Parser for uniform resource names as seen on RFC 2141")
> + (description
> + "This package implements a parser for uniform resource names (URN) as
> +specified by @uref{https://tools.ietf.org/html/rfc2141, IETF RFC 2141}.")
> + (license license:expat)))
> +
> (define-public go-github.com-jessevdk-go-flags
> (package
> (name "go-github.com-jessevdk-go-flags")
> --
> 2.29.2
>


--
Efraim Flashner <efraim@flashner.co.il> ????? ?????
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl/x4YkACgkQQarn3Mo9
g1GnChAAv8/qBd+5+G8SOZ2YakAOcv9RgZmfSu1VYgE5HhF1kzwoOzu38pp/Kvwv
S6SxKuHfcqbH52nuv+uqDotbdexvbeBKxIoRhAFv22NzfA39rS6cn2txbyuEc71v
Bi0QHbl/gF+yG7iUyzDxghDH1ooqSKPjvuvFfb6xsKbnWui1uOI6xpI4aYHsZZzF
vPsiHPB0AHR3gN75KH4NXoDpwRgojy8hyuBL3pChucPSCSqVUGxZ0sY2A6dzGJ5w
tBs9ioUrGrjRYGEcdFoqBteNqAGVDMY4blLviK/lFbzxxUYVKleZ9qGPRx9oRHla
oxURaoTlt7ikENuSvNltE1jvPDCDVYgZzmXJnfZHmBaJflci3sLJLSPGcvCuFHCy
RAva55pjsz0YodI7l3aZ2U4R74DzfVM7CCXJYC8rQMSlt3xAZiMdx8vsu81RTiMM
+gRKKfqYRZ5LhrVGJ6bQFc+mjDO1PfrSl5knthO3TOar1qOzlmSPt4DYC5VxEWvr
zElYrYswj+dr7NVlvY82w0Ns2QQdDlLHp4vLigyLSw0yXg5uG4SyXFayTnj7sYjQ
rpwRWCZLxu604ltZ6Z305qKa63TMncK3XwNvbKyxF1TIxJ0jpx9jY8eG9awcOgJ/
W0mmYcDq+bH915Ofq97FJ1Uem5N/ONr7G5yhlL3i1Tub4YFCqrQ=
=DCRk
-----END PGP SIGNATURE-----


E
E
Efraim Flashner wrote on 3 Jan 2021 16:24
Re: [bug#44562] [PATCH 15/15] gnu: Add ghq.
(name . Joseph LaFreniere)(address . joseph@lafreniere.xyz)(address . 44562-done@debbugs.gnu.org)
X/Hhm/QnkWUQzT48@3900XT
I ended up merging the previous two patches and moved the package to
version-control.scm

--
Efraim Flashner <efraim@flashner.co.il> ????? ?????
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl/x4ZsACgkQQarn3Mo9
g1HudRAAocKN5uHufHCPMsNtPn6ASH9YYSccoeX9KHT1qdjAPWyT1xxCl1dE2Mso
nIXk58ovSqnSU/odcjsSam5SrsJTB1LRZtNxX6vANwAYQvdZd7nTrq618qBDRrI0
hwDatb1sWaOrq2APM1bToR8g1Qe/fdSEJiat+fAgd2ZZ5675WoLjXaS3tpkw2Bw7
l4DH+GmED1itPNSKB/+nSvMDFHsS0670utGqQP73P8g8a2/NG/Nyn5weVrAnNFtw
YJxyNN4XXSzihaA1Bn9I/r74N4btxInlz3VX91dMY/gFb73t4vl0kWFaE5hR95sb
ybtfFL06jaBT72K8XV5QjdA8JelhjsVVuSYpBMYoyhl3V0pgfMRsV3ZFD2+AKGAF
9Qk3OZJZezt+/wty8QlgRQUyT8+xlphNkBkyDUDftEX5ykJ9Ggxqz74vtRta2cWW
xN6kjtGLSOA4zKskkroHSp3tNPGyLThnPH0Y20I++ixKwV8nDVoDqAdFvAWkFyzZ
APxyS5uv09d3T8oB41TpRYOXHSGViK/tTtbB12suyNzqfEoQ8WCWRjxKPf1V3LOB
BNaCClV5eznVB7ePsijlLmPfoDtXQmHowKfETQJ6vZK9sraJ3UfwX52JN4kQHJ9N
+dqGQsMmrtoiDNyecwBP6IWOq/aDyjjSdL8mBYzVWZJJwTiW1+E=
=Uaj0
-----END PGP SIGNATURE-----


Closed
?