gnu: Add go-github-com-asaskevich-govalidator.
* gnu/packages/golang-xyz.scm (go-github-com-asaskevich-govalidator): New variable. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Change-Id: I81bedd44ba1b41771a114733b443a73953e7d7e1
This commit is contained in:
parent
9640f4a01a
commit
bf7ba1ef8c
@ -25,6 +25,7 @@
|
|||||||
;;; Copyright © 2022 (unmatched-parenthesis <paren@disroot.org>
|
;;; Copyright © 2022 (unmatched-parenthesis <paren@disroot.org>
|
||||||
;;; Copyright © 2022 Dhruvin Gandhi <contact@dhruvin.dev>
|
;;; Copyright © 2022 Dhruvin Gandhi <contact@dhruvin.dev>
|
||||||
;;; Copyright © 2022 Dominic Martinez <dom@dominicm.dev>
|
;;; Copyright © 2022 Dominic Martinez <dom@dominicm.dev>
|
||||||
|
;;; Copyright © 2022 Leo Nikkilä <hello@lnikki.la>
|
||||||
;;; Copyright © 2022 kiasoc5 <kiasoc5@disroot.org>
|
;;; Copyright © 2022 kiasoc5 <kiasoc5@disroot.org>
|
||||||
;;; Copyright © 2023 Benjamin <benjamin@uvy.fr>
|
;;; Copyright © 2023 Benjamin <benjamin@uvy.fr>
|
||||||
;;; Copyright © 2023 Fries <fries1234@protonmail.com>
|
;;; Copyright © 2023 Fries <fries1234@protonmail.com>
|
||||||
@ -892,6 +893,39 @@ optimized for sparse nodes of
|
|||||||
for Go.")
|
for Go.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public go-github-com-asaskevich-govalidator
|
||||||
|
(package
|
||||||
|
(name "go-github-com-asaskevich-govalidator")
|
||||||
|
(version "11.0.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/asaskevich/govalidator")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0aab1pym5c6di8vidynp6ly5j4kcqv6lp2737gw0a07zng0nn8lw"))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:import-path "github.com/asaskevich/govalidator"
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'disable-failing-tests
|
||||||
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(substitute* (find-files "." "\\_test.go$")
|
||||||
|
;; XXX: Some validation are failed in the test.
|
||||||
|
(("TestIsExistingEmail") "OffTestIsExistingEmail"))))))))
|
||||||
|
(home-page "https://github.com/asaskevich/govalidator")
|
||||||
|
(synopsis "Collection of various validators for Golang")
|
||||||
|
(description
|
||||||
|
"This package provides validators and sanitizers for strings, structs and
|
||||||
|
collections. It was based on
|
||||||
|
@url{https://github.com/chriso/validator.js,validator.js}.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public go-github-com-audriusbutkevicius-recli
|
(define-public go-github-com-audriusbutkevicius-recli
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-audriusbutkevicius-recli")
|
(name "go-github-com-audriusbutkevicius-recli")
|
||||||
|
Loading…
Reference in New Issue
Block a user