diff options
author | Leo Nikkilä <hello@lnikki.la> | 2024-08-12 16:55:26 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-08-25 20:46:45 +0100 |
commit | bf7ba1ef8ca6e7fe47ea25b152fabac2310ed408 (patch) | |
tree | cf107b4550c0a3381a2cfa79329e94a21695ce21 | |
parent | 9640f4a01ab9d895f8a4d448ccdcbe538aaa4630 (diff) | |
download | guix-bf7ba1ef8ca6e7fe47ea25b152fabac2310ed408.tar.gz guix-bf7ba1ef8ca6e7fe47ea25b152fabac2310ed408.zip |
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
-rw-r--r-- | gnu/packages/golang-xyz.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 45af26b38c..78bd492bfa 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2022 (unmatched-parenthesis <paren@disroot.org> ;;; Copyright © 2022 Dhruvin Gandhi <contact@dhruvin.dev> ;;; Copyright © 2022 Dominic Martinez <dom@dominicm.dev> +;;; Copyright © 2022 Leo Nikkilä <hello@lnikki.la> ;;; Copyright © 2022 kiasoc5 <kiasoc5@disroot.org> ;;; Copyright © 2023 Benjamin <benjamin@uvy.fr> ;;; Copyright © 2023 Fries <fries1234@protonmail.com> @@ -892,6 +893,39 @@ optimized for sparse nodes of for Go.") (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 (package (name "go-github-com-audriusbutkevicius-recli") |