diff options
Diffstat (limited to 'gnu/packages/golang-web.scm')
-rw-r--r-- | gnu/packages/golang-web.scm | 945 |
1 files changed, 840 insertions, 105 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e64f20801c..90db38d31b 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3,24 +3,26 @@ ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr> ;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org> +;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net> ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us> ;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz> -;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net> ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr> ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com> ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com> ;;; Copyright © 2020 raingloom <raingloom@riseup.net> -;;; Copyright © 2020-2022 Efraim Flashner <efraim@flashner.co.il> +;;; Copyright © 2020-2023 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2021 Collin J. Doering <collin@rekahsoft.ca> ;;; Copyright © 2021 Philip McGrath <philip@philipmcgrath.com> ;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name> ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev> +;;; Copyright © 2022 (unmatched-parenthesis <paren@disroot.org> ;;; Copyright © 2022 Adam Kandur <kefironpremise@gmail.com> ;;; Copyright © 2022 Dhruvin Gandhi <contact@dhruvin.dev> ;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org> ;;; Copyright © 2022 jgart via Guix-patches via <guix-patches@gnu.org> ;;; Copyright © 2022 muradm <mail@muradm.net> ;;; Copyright © 2022, 2023 Sharlatan Hellseher <sharlatanus@gmail.com> +;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com> ;;; Copyright © 2023 Filip Lajszczak <filip@lajszczak.dev> ;;; Copyright © 2023 Fries <fries1234@protonmail.com> ;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space> @@ -66,8 +68,10 @@ ;;; Commentary: ;;; -;;; Golang modules (libraries) related to HTML, CSS, SCSS, JavaScript, JSON, -;;; Web-framework, REST-API or similar functionality. They may provide +;;; Golang modules (libraries) for Web related projects: HTML, CSS, SCSS, +;;; JavaScript, JSON, Web-framework, REST-API or similar functionality; for +;;; Network related projects: OSI layers implementation algorithms, MIME, +;;; Email protocols implementations, and similar. They may provide ;;; executables and libraries, for which there are marked sections. ;;; @@ -127,6 +131,44 @@ API service accounts for Go.") "This package provides a GraphQL client and code generator for Go.") (license license:expat))) +(define-public go-git-sr-ht-rockorager-go-jmap + (package + (name "go-git-sr-ht-rockorager-go-jmap") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~rockorager/go-jmap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1r8bmdlmvpk08i7xrqwgv0aaz05564wgcyji73nszdh2s32m4kzl")))) + (build-system go-build-system) + (arguments + (list + #:import-path "git.sr.ht/~rockorager/go-jmap" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules support. + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (native-inputs + (list + go-github-com-stretchr-testify)) + (propagated-inputs + (list go-golang-org-x-oauth2)) + (home-page "https://git.sr.ht/~rockorager/go-jmap") + (synopsis "JSON meta application protocol in Golang") + (description + "Package jmap implements JMAP Core protocol as defined in +@@url{https://rfc-editor.org/rfc/rfc8620.html,RFC 8620} published on July +2019.") + (license license:expat))) + (define-public go-github-com-alexliesenfeld-health (package (name "go-github-com-alexliesenfeld-health") @@ -206,7 +248,6 @@ the parse trees produced by the html package.") (build-system go-build-system) (arguments (list - #:go go-1.21 #:import-path "github.com/AudriusButkevicius/pfilter" #:phases #~(modify-phases %standard-phases @@ -228,40 +269,10 @@ the parse trees produced by the html package.") connections from a single physical connection.") (license license:expat))) -(define-public go-github-com-aws-sdk - (package - (name "go-github-com-aws-sdk") - (version "1.35.2") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/aws/aws-sdk-go") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1ky5lw2s2zpslnnqcs6hgsrwvwbxwgflb5jwf16dd4aga3vrg10c")))) - (build-system go-build-system) - (arguments - '(#:import-path "github.com/aws/aws-sdk-go/aws" - #:unpack-path "github.com/aws/aws-sdk-go")) - (propagated-inputs - (list go-github-com-go-sql-driver-mysql - go-github-com-jmespath-go-jmespath - go-github-com-pkg-errors - go-golang-org-x-net)) - (home-page "https://github.com/aws/aws-sdk-go") - (synopsis "Library to access Amazon Web Services (AWS)") - (description - "This is the official AWS SDK for the Go programming language.") - (license license:asl2.0))) - -;; XXX: This package might be a duplicate of go-github-com-aws-sdk, it's not -;; in use anywhere. Keep it here for the farther review. (define-public go-github-com-aws-aws-sdk-go (package (name "go-github-com-aws-aws-sdk-go") - (version "1.36.18") + (version "1.55.2") (source (origin (method git-fetch) @@ -270,17 +281,32 @@ connections from a single physical connection.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "169mkkw1cff1px6326krwvfpfj07sb4y5rbn003gi4bk176h6ry9")))) + (base32 "0wsl1vcig3j9z6v2hppfr1bvrvbisck026fwq2a7yzmx36pwnj6a")))) (build-system go-build-system) + (arguments + (list + #:import-path "github.com/aws/aws-sdk-go" + #: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$") + (("TestProcessProviderTimeout") + "OffTestProcessProviderTimeout"))))) + ;; XXX: Workaround for go-build-system's lack of Go modules + ;; support. + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) (propagated-inputs (list go-github-com-jmespath-go-jmespath)) - (arguments - '(#:import-path "github.com/aws/aws-sdk-go" - #:phases %standard-phases)) + (home-page "https://github.com/aws/aws-sdk-go") (synopsis "The official AWS SDK for the Go programming language") (description "The official AWS SDK for the Go programming language.") - (home-page "https://github.com/aws/aws-sdk-go") (license license:asl2.0))) (define-public go-github-com-aws-aws-sdk-go-v2 @@ -301,7 +327,7 @@ connections from a single physical connection.") '(#:import-path "github.com/aws/aws-sdk-go-v2")) (propagated-inputs (list go-github-com-aws-smithy-go - go-github-com-google-go-cmp-cmp + go-github-com-google-go-cmp go-github-com-jmespath-go-jmespath)) (home-page "https://github.com/aws/aws-sdk-go-v2") (synopsis "AWS SDK for Go v2") @@ -318,9 +344,37 @@ connections from a single physical connection.") '(#:import-path "github.com/aws/aws-sdk-go-v2/config" #:unpack-path "github.com/aws/aws-sdk-go-v2")) (propagated-inputs - (list go-github-com-google-go-cmp-cmp + (list go-github-com-google-go-cmp go-github-com-aws-smithy-go)))) +(define-public go-github-com-aws-aws-sdk-go-v2-credentials + (package + (name "go-github-com-aws-aws-sdk-go-v2-credentials") + (version "1.17.27") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/aws-sdk-go-v2") + (commit (string-append "credentials/v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0jdj7wim98g80hjbw3av7ffrr3dqxzbygprmhjs0cxc16cw62wj7")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/aws/aws-sdk-go-v2/credentials" + #:unpack-path "github.com/aws/aws-sdk-go-v2")) + (propagated-inputs + (list go-github-com-google-go-cmp + go-github-com-aws-smithy-go)) + (home-page "https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/credentials") + (synopsis "AWS SDK for Go v2 - credentials module") + (description + "Package credentials provides types for retrieving credentials from +credentials sources.") + (license license:asl2.0))) + (define-public go-github-com-aws-aws-sdk-go-v2-feature-s3-manager (package (inherit go-github-com-aws-aws-sdk-go-v2) @@ -403,7 +457,7 @@ connections from a single physical connection.") (arguments '(#:import-path "github.com/aws/smithy-go")) (propagated-inputs - (list go-github-com-jmespath-go-jmespath go-github-com-google-go-cmp-cmp)) + (list go-github-com-jmespath-go-jmespath go-github-com-google-go-cmp)) (home-page "https://github.com/aws/smithy-go") (synopsis "@url{https://smithy.io/2.0/index.html,Smithy} code generators for Go") @@ -561,8 +615,8 @@ and RFC 5389).") (base32 "1pwr7fzxgngb073q98qrz1f90bkk3pljynif6jl5a6q6kcsn7xf1")))) (build-system go-build-system) (arguments - (list #:go go-1.21 - #:import-path "github.com/cenkalti/backoff/v4")) + (list + #:import-path "github.com/cenkalti/backoff/v4")) (home-page "https://github.com/cenkalti/backoff") (synopsis "The exponential backoff algorithm in Go") (description "This is a Go port of the exponential backoff algorithm from @@ -634,7 +688,7 @@ and stop increasing when a certain threshold is met.") (package (inherit go-github-com-coreos-go-oidc) (name "go-github-com-coreos-go-oidc-v3") - (version "3.6.0") + (version "3.11.0") (source (origin (method git-fetch) @@ -643,15 +697,295 @@ and stop increasing when a certain threshold is met.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1sbm6n3lp48lymn0g921afhq2j6inb38w3wy5rhyx9h8gpzhnxx9")))) + (base32 "00nbv15pjfcfxdy0i4k366ricdm2cylhpwak3hmjlgh6lrzxypl9")))) (arguments - (list ;; no Go files in [...]/src/github.com/coreos/go-oidc/v3. - #:import-path "github.com/coreos/go-oidc/v3/oidc" - #:unpack-path "github.com/coreos/go-oidc/v3")) + (list + #:import-path "github.com/coreos/go-oidc/v3" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules + ;; support. + (delete 'build) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) (propagated-inputs - (list go-github-com-go-jose-go-jose-v3 + (list go-github-com-go-jose-go-jose-v4 + go-golang-org-x-net go-golang-org-x-oauth2)))) +(define-public go-github-com-emersion-go-imap + (package + (name "go-github-com-emersion-go-imap") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-imap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ak2ysvfcc9w0g1070msis8x9sh6gzvf0nd65ks594siwbmqddw8")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/emersion/go-imap")) + (propagated-inputs + (list go-golang-org-x-text + go-github-com-emersion-go-sasl + go-github-com-emersion-go-message)) + (home-page "https://github.com/emersion/go-imap") + (synopsis "IMAP4rev1 library written in Go") + (description + "This package provides an IMAP4rev1 library written in Go. It can be +used to build IMAP clients and servers.") + (license license:expat))) + +;; XXX: This repository has been archived by the owner on Sep 8, 2021. It is +;; now read-only. +(define-public go-github-com-emersion-go-imap-idle + (let ((commit "2704abd7050ed7f2143753554ee23affdf847bd9") + (revision "0")) + (package + (name "go-github-com-emersion-go-imap-idle") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-imap-idle") + (commit commit))) + (sha256 + (base32 + "0blwcadmxgqsdwgr9m4jqfbpfa2viw5ah19xbybpa1z1z4aj5cbc")) + (file-name (git-file-name name version)))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/emersion/go-imap-idle")) + (propagated-inputs + (list go-github-com-emersion-go-imap)) + (home-page "https://github.com/emersion/go-imap-idle") + (synopsis "IDLE extension for go-imap") + (description "This package provides an IDLE extension for go-imap.") + (license license:expat)))) + +(define-public go-github-com-emersion-go-imap-sortthread + (package + (name "go-github-com-emersion-go-imap-sortthread") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-imap-sortthread") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cfbgz1l5angnj52v9pxwggai2shx0h78ffcp7j4r4lr7lzflnwz")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/emersion/go-imap-sortthread")) + (propagated-inputs + (list + go-github-com-emersion-go-imap)) + (home-page "https://github.com/emersion/go-imap-sortthread") + (synopsis "Sorting and threading of messages for the imap package") + (description + "The sortthread package implements message sorting and threading for +@code{go-github-com-emersion-go-imap}.") + (license license:expat))) + +(define-public go-github-com-emersion-go-maildir + (package + (name "go-github-com-emersion-go-maildir") + (version "0.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-maildir") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wa7spn3qa7ipmg29vrimw7phyybyaagdalrjklcazjb6rplvwpl")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/emersion/go-maildir")) + (home-page "https://github.com/emersion/go-maildir") + (synopsis "Maildir interface for Go") + (description + "This package provides an interface to mailboxes in the Maildir format.") + (license license:expat))) + +(define-public go-github-com-emersion-go-mbox + (package + (name "go-github-com-emersion-go-mbox") + (version "1.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-mbox") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vnadh2khx7sxn0irrd8gz8ra02x7ij0q8zglq3rqffqil06nliv")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/emersion/go-mbox")) + (home-page "https://github.com/emersion/go-mbox") + (synopsis "Go library for handling @code{mbox} files") + (description + "This package provides a library for parsing and formatting @code{mbox} +files.") + (license license:expat))) + +(define-public go-github-com-emersion-go-message + (package + (name "go-github-com-emersion-go-message") + (version "0.18.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-message") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0gzcgrs5sava8fpybp5cw6f3zqnbz096wf93hcgkrg94wl1g7kqb")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/emersion/go-message")) + (propagated-inputs + (list go-golang-org-x-text)) + (home-page "https://github.com/emersion/go-message") + (synopsis "Internet messages and MIME for Go") + (description + "The message package implements the Internet Message Format and +Multipurpose Internet Mail Extensions in Go.") + (license license:expat))) + +(define-public go-github-com-emersion-go-milter + (package + (name "go-github-com-emersion-go-milter") + (version "0.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-milter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11qjwjz6ippsx9da81gylx46p1a96mk39j54ayw925m40skqhh3c")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/emersion/go-milter")) + (propagated-inputs + (list go-github-com-emersion-go-message)) + (home-page "https://github.com/emersion/go-milter") + (synopsis "Milter mail filters in Go") + (description + "This package provides an interface for implementing milter mail filters +for Go.") + (license license:bsd-2))) + +(define-public go-github-com-emersion-go-msgauth + (package + (name "go-github-com-emersion-go-msgauth") + (version "0.6.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-msgauth") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0az83i6jmk3bjglgdqw5zsvhh8698rav0mcg4dy8kr0cgq0lj5zs")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/emersion/go-msgauth" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Run all tests, workaround for go-build-system's lack of Go + ;; modules support. + (delete 'build) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (propagated-inputs + (list go-golang-org-x-crypto + go-github-com-emersion-go-milter + go-github-com-emersion-go-message)) + (home-page "https://github.com/emersion/go-msgauth") + (synopsis "Email authentication for Go") + (description + "This package provides a Go library for authenticating emails.") + (license license:expat))) + +(define-public go-github-com-emersion-go-sasl + (let ((commit "0b9dcfb154ac3d7515b08bc2691a0332800edfe9") + (revision "1")) + (package + (name "go-github-com-emersion-go-sasl") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-sasl") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cbf86wkqrdinfydndgdlnayg4a5mg3d4vqra377j2sfkg7wj0hs")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/emersion/go-sasl")) + (home-page "https://github.com/emersion/go-sasl") + (synopsis "SASL library written in Go") + (description + "This package provides a SASL library written in Go.") + (license license:expat)))) + +(define-public go-github-com-emersion-go-smtp + (package + (name "go-github-com-emersion-go-smtp") + (version "0.21.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emersion/go-smtp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0drvmvrkmhqhnv4m3my1hbkyyva2vi35b36j0pdi57xc9rflziq3")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/emersion/go-smtp")) + (propagated-inputs + (list go-github-com-emersion-go-sasl)) + (home-page "https://github.com/emersion/go-smtp") + (synopsis "SMTP implementation for Go") + (description + "This package implements the Simple Mail Transfer Protocol as defined by +RFC 5321.") + (license license:expat))) + (define-public go-github-com-emicklei-go-restful (package (name "go-github-com-emicklei-go-restful") @@ -732,6 +1066,35 @@ API and doesn't use reflection. It relies on small interfaces to decode/encode structures and slices.") (license license:expat))) +(define-public go-github-com-gatherstars-com-jwz + (package + (name "go-github-com-gatherstars-com-jwz") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gatherstars-com/jwz") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1d66axc3504wqpb4axlm8m9jq8rmwndxb4asbqwryymj3yh60cla")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/gatherstars-com/jwz")) + (propagated-inputs + (list go-github-com-rivo-tview + go-github-com-jhillyerd-enmime + go-github-com-gdamore-tcell-v2)) + (home-page "https://github.com/gatherstars-com/jwz") + (synopsis "Email threading algorithm in Golang") + (description + "The jwz package provides an implementation of the email threading +algorithm originally designed for use in +@url{https://www.jwz.org/doc/threading.html,Netscape Mail 2.0 and 3.0} for +Golang.") + (license license:asl2.0))) + ;; TODO: This repository has been archived by the owner on Aug 30, 2023. It is ;; now read-only. The raven-go SDK is no longer maintained and was superseded ;; by the sentry-go @@ -787,7 +1150,7 @@ decompose request handling into many smaller layers.") (define-public go-github-com-go-jose-go-jose-v3 (package (name "go-github-com-go-jose-go-jose-v3") - (version "3.0.0") + (version "3.0.3") (source (origin (method git-fetch) @@ -796,14 +1159,14 @@ decompose request handling into many smaller layers.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1fnw0p49wc9gmd2xcji2x9jf97dgg9igagd5m6bmq3nw9jjfqdc5")))) + (base32 "0kbkplhzqv9ai28r4smhdsxxwh20d96srr3am37pwwnh48ivwch8")))) (build-system go-build-system) (arguments '( #:import-path "github.com/go-jose/go-jose/v3")) (propagated-inputs (list go-golang-org-x-crypto)) (native-inputs - (list go-github-com-google-go-cmp-cmp + (list go-github-com-google-go-cmp go-github-com-stretchr-testify)) (home-page "https://github.com/go-jose/go-jose") (synopsis "Implementation of JOSE standards (JWE, JWS, JWT) in Go") @@ -813,6 +1176,24 @@ Signing and Encryption set of standards. This includes support for JSON Web Encryption, JSON Web Signature, and JSON Web Token standards.") (license license:asl2.0))) +(define-public go-github-com-go-jose-go-jose-v4 + (package + (inherit go-github-com-go-jose-go-jose-v3) + (name "go-github-com-go-jose-go-jose-v4") + (version "4.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-jose/go-jose") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bf444687q5rdxjgk41bkryhzhx49f6600b7i51m572xdl0r28a9")))) + (arguments + (list + #:import-path "github.com/go-jose/go-jose/v4")))) + (define-public go-github-com-go-ldap-ldap (package (name "go-github-com-go-ldap-ldap") @@ -851,30 +1232,113 @@ Encryption, JSON Web Signature, and JSON Web Token standards.") language.") (license license:expat))) -(define-public go-github-com-go-telegram-bot-api-telegram-bot-api +(define-public go-github-com-go-webauthn-webauthn (package - (name "go-github-com-go-telegram-bot-api-telegram-bot-api") - (version "4.6.4") + (name "go-github-com-go-webauthn-webauthn") + (version "0.10.2") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/go-telegram-bot-api/telegram-bot-api") + (url "https://github.com/go-webauthn/webauthn") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1x6j0k3aiicsr8l53na99ci10zm3qpn2syz4f60fzh164w5k1l7w")))) + (base32 "1jbx3cd8cr4aaqq9s1x4sd1rlcs3lmam5aavpl08s5rj18m7rivf")))) (build-system go-build-system) - (home-page "https://go-telegram-bot-api.dev/") (arguments - (list #:tests? #f ; Upstream tests are broken. - #:import-path "github.com/go-telegram-bot-api/telegram-bot-api")) + (list + #:go go-1.22 + #:import-path "github.com/go-webauthn/webauthn" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-failing-tests + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (for-each delete-file + (list + ;; It tryes to access outbound network: + ;; + ;; Get "https://mds.fidoalliance.org": dial tcp: + ;; lookup mds.fidoalliance.org on [::1]:53: read udp + ;; [::1]:52300->[::1]:53: read: connection refused + ;; + ;; Post "https://mds3.fido.tools/getEndpoints": dial + ;; tcp: lookup mds3.fido.tools on [::1]:53: read udp + ;; [::1]:46703->[::1]:53: read: connection refused + "metadata/metadata_test.go" + ;; Get "https://mds.fidoalliance.org": dial tcp: + ;; lookup mds.fidoalliance.org on [::1]:53: read udp + ;; [::1]:37459->[::1]:53: read: connection refused + "protocol/attestation_androidkey_test.go" + "protocol/attestation_apple_test.go" + "protocol/attestation_packed_test.go" + "protocol/attestation_safetynet_test.go" + "protocol/attestation_test.go" + "protocol/attestation_tpm_test.go" + "protocol/attestation_u2f_test.go"))))) + ;; XXX: Run all tests, workaround for go-build-system's lack of Go + ;; modules support. + (delete 'build) + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" "./...")))))))) + (native-inputs + (list go-github-com-stretchr-testify)) (propagated-inputs - (list go-github-com-technoweenie-multipartstreamer)) - (synopsis "Golang bindings for the Telegram Bot API") + (list go-github-com-fxamacker-cbor-v2 + go-github-com-go-webauthn-x + go-github-com-golang-jwt-jwt-v5 + go-github-com-google-go-tpm + go-github-com-google-uuid + go-github-com-mitchellh-mapstructure)) + (home-page "https://github.com/go-webauthn/webauthn") + (synopsis "Webauthn/FIDO2 library for Golang") (description - "This package provides Golang bindings for the Telegram Bot API.") - (license license:expat))) + "This library is meant to handle @url{https://www.w3.org/TR/webauthn,Web +Authentication} for Go apps that wish to implement a passwordless solution for +users. This library conforms as much as possible to the guidelines and +implementation procedures outlined by the document. It's a successor of not +maintained https://github.com/duo-labs/webauthn library.") + (license license:bsd-3))) + +(define-public go-github-com-go-webauthn-x + (package + (name "go-github-com-go-webauthn-x") + (version "0.1.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-webauthn/x") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1h2ylzzh5xismgkz0gar3k8lwdwqqc2np4z5gmi1b5chh6qwy1bs")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ; no tests + #:import-path "github.com/go-webauthn/x" + #:phases + #~(modify-phases %standard-phases + ;; Source only package. + (delete 'build)))) + (propagated-inputs + (list go-golang-org-x-crypto)) + (home-page "https://github.com/go-webauthn/x") + (synopsis "Low level packages for WebAuthn") + (description + "This package implements a low level functionality for +@url{https://github.com/go-webauthn/webauthn,WebAuthn} library. It was forked +from CloudFlare's github.com/cloudflare/cfssl/revoke.") + (license (list + ;; For the CloudFlare's part: revoke/LICENSE. + license:bsd-2 + ;; For the WebAuthn's fork: LICENSE. + license:bsd-3)))) (define-public go-github-com-goccy-go-json (package @@ -947,8 +1411,11 @@ processes.") `(#:tests? #f ;application/octet-stream instead of text/plain #:import-path "github.com/google/go-github/v26/github" #:unpack-path "github.com/google/go-github/v26")) - (native-inputs - (list go-github-com-google-go-querystring go-golang-org-x-crypto)) + (propagated-inputs + (list go-github-com-google-go-querystring + go-golang-org-x-crypto + go-golang-org-x-oauth2 + go-golang-org-x-sync)) (home-page "https://github.com/google/go-github/") (synopsis "Client library for accessing the GitHub API v3") (description "@code{go-github} is a Go client library for accessing the @@ -1256,10 +1723,10 @@ the Go standard library, but returns a client that does not share any state with other clients.") (license license:mpl2.0))) -(define-public go-github-com-hjson-hjson-go +(define-public go-github-com-hjson-hjson-go-v4 (package - (name "go-github-com-hjson-hjson-go") - (version "4.3.1") + (name "go-github-com-hjson-hjson-go-v4") + (version "4.4.0") (source (origin (method git-fetch) @@ -1268,15 +1735,17 @@ with other clients.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "138vmbnrwzxf64cia27k407clrydvs2jx927dlv6ziydiqyvy7m3")))) + (base32 "1d4b2hpqsnzbmfhgxq15hd19rjr5hydjmpblrh5yzfgx9z3cz2by")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/hjson/hjson-go")) + (list + #:import-path "github.com/hjson/hjson-go/v4")) (home-page "https://hjson.org/") (synopsis "Human JSON implementation for Go") - (description "Hjson is a syntax extension to JSON. It is intended to be -used like a user interface for humans, to read and edit before passing the -JSON data to the machine.") + (description + "Hjson is a syntax extension to JSON. It is intended to be used like a +user interface for humans, to read and edit before passing the JSON data to +the machine.") (license license:expat))) (define-public go-github-com-jackpal-gateway @@ -1295,7 +1764,6 @@ JSON data to the machine.") (build-system go-build-system) (arguments (list - #:go go-1.21 #:import-path "github.com/jackpal/gateway")) (native-inputs (list go-github-com-stretchr-testify)) @@ -1436,6 +1904,38 @@ SPNEGO Kerberos authentication, as well as a HTTP handler wrapper decodes Microsoft AD PAC authorization data.") (license license:asl2.0))) +(define-public go-github-com-jhillyerd-enmime + (package + (name "go-github-com-jhillyerd-enmime") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jhillyerd/enmime") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03pir9wq9ha2i2ifj819yv5i0lvrgdn904ksbzgc3k8bqc497ydn")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/jhillyerd/enmime")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-cention-sany-utf7 + go-github-com-go-test-deep + go-github-com-gogs-chardet + go-github-com-jaytaylor-html2text + go-github-com-pkg-errors + go-golang-org-x-text)) + (home-page "https://github.com/jhillyerd/enmime") + (synopsis "MIME encoder and decoder for Go") + (description + "The enmime package implements a MIME encoding and decoding library +geared towards parsing MIME encoded emails.") + (license license:expat))) + (define-public go-github-com-jmespath-go-jmespath (package (name "go-github-com-jmespath-go-jmespath") @@ -1536,7 +2036,7 @@ router.") (base32 "196rxfg7w8s3zn87gra1mxh1l8iav6kdmg909gkbnc9cxip65zc0")))) (build-system go-build-system) (propagated-inputs - (list go-github-com-google-go-cmp-cmp + (list go-github-com-google-go-cmp go-golang-org-x-net go-golang-org-x-text)) (arguments @@ -1650,14 +2150,13 @@ following: (base32 "1rn02yn7494r7ayn585bbsddprbn8wdccxs4n2k5dmll4dyd39mp")))) (arguments (list - #:go go-1.21 #:import-path "github.com/multiformats/go-multiaddr")) (native-inputs (list go-github-com-stretchr-testify)) (propagated-inputs (list go-github-com-ipfs-go-cid go-github-com-multiformats-go-multibase go-github-com-multiformats-go-varint go-github-com-multiformats-go-multihash - go-golang-org-x-exp-2023)))) + go-golang-org-x-exp)))) (define-public go-github-com-multiformats-go-multiaddr-dns (package @@ -1675,7 +2174,6 @@ following: (build-system go-build-system) (arguments (list - #:go go-1.21 #:import-path "github.com/multiformats/go-multiaddr-dns" #:unpack-path "github.com/multiformats/go-multiaddr-dns")) (propagated-inputs @@ -1703,7 +2201,6 @@ following: (build-system go-build-system) (arguments (list - #:go go-1.21 #:import-path "github.com/multiformats/go-multiaddr-fmt")) (propagated-inputs (list go-github-com-multiformats-go-multiaddr-0.12)) @@ -1767,7 +2264,6 @@ conversion to and from @command{net.Addr}.") (build-system go-build-system) (arguments (list - #:go go-1.20 #:import-path "github.com/multiformats/go-multistream")) (propagated-inputs (list go-github-com-multiformats-go-varint)) @@ -1779,6 +2275,30 @@ multistream-select protocol. The protocol is defined at @url{https://github.com/multiformats/multistream-select}") (license license:expat))) +(define-public go-github-com-munnerz-goautoneg + (package + (name "go-github-com-munnerz-goautoneg") + (version "0.0.0-20191010083416-a7dc8b61c822") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/munnerz/goautoneg") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1m4v6bw6yf1g0kvpc46isjp0qfhx2y8gnvlnyjf637jy64613mgg")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/munnerz/goautoneg")) + (home-page "https://github.com/munnerz/goautoneg") + (synopsis "HTTP Content-Type Autonegotiation") + (description + "This package implements @url{https://rfc-editor.org/rfc/rfc2616.html,RFC +2616} HTTP/1.1 standard.") + (license license:bsd-3))) + (define-public go-github-com-nwidger-jsoncolor (package (name "go-github-com-nwidger-jsoncolor") @@ -1846,7 +2366,6 @@ which produce colorized output using github.com/fatih/color.") (arguments (list #:tests? #f ; Requires some unpackaged software and test data - #:go go-1.21 #:import-path "github.com/oschwald/geoip2-golang")) (propagated-inputs (list go-github-com-oschwald-maxminddb-golang)) @@ -1873,7 +2392,6 @@ databases in Go.") (build-system go-build-system) (arguments (list - #:go go-1.21 #:import-path "github.com/oschwald/maxminddb-golang" #:phases #~(modify-phases %standard-phases @@ -1903,6 +2421,35 @@ used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a higher-level API for doing so.") (license license:isc))) +(define-public go-github-com-pion-datachannel + (package + (name "go-github-com-pion-datachannel") + (version "1.5.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pion/datachannel") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0v2xwrzvflrh1s8x6p1dj9h0hmxsp30h8whbl5p544r30rvsbnp2")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pion/datachannel")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-pion-logging + go-github-com-pion-sctp + go-github-com-pion-transport-v3)) + (home-page "https://github.com/pion/datachannel") + (synopsis "Implementation of WebRTC Data Channels in Golang") + (description + "This package implements @code{WebRTC} Data Channels.") + (license license:expat))) + (define-public go-github-com-pion-dtls (package (name "go-github-com-pion-dtls") @@ -1951,7 +2498,6 @@ in Golang.") (base32 "10nn9349f7snqkzncda5m013fgnzicrcxi6pb6ghc0vb6rhqkf30")))) (arguments (list - #:go go-1.21 #:import-path "github.com/pion/dtls/v2")) (native-inputs (list go-github-com-stretchr-testify)) @@ -2028,7 +2574,6 @@ part of @url{https://github.com/pion, Pion} WebRTC implementation.") (arguments (list #:tests? #f ;Tests require network access. - #:go go-1.21 #:import-path "github.com/pion/ice/v2")) (propagated-inputs (list go-github-com-google-uuid @@ -2058,7 +2603,6 @@ part of @url{https://github.com/pion, Pion} WebRTC implementation.") (arguments (list #:tests? #f ;Tests require network access. - #:go go-1.21 #:import-path "github.com/pion/ice/v3")) (propagated-inputs (list go-github-com-google-uuid @@ -2091,7 +2635,6 @@ part of @url{https://github.com/pion, Pion} WebRTC implementation.") ;; packaging, see ;; <https://github.com/pion/.goassets/blob/master/.github/workflows/test.reusable.yml>. #:tests? #f - #:go go-1.21 #:unpack-path "github.com/pion/mdns" #:import-path "github.com/pion/mdns")) (native-inputs @@ -2145,7 +2688,6 @@ part of @url{https://github.com/pion, Pion} WebRTC implementation.") (build-system go-build-system) (arguments (list - #:go go-1.21 #:import-path "github.com/pion/rtp")) (propagated-inputs (list go-github-com-pion-randutil)) @@ -2156,6 +2698,37 @@ part of @url{https://github.com/pion, Pion} WebRTC implementation.") packetizer and depacketizer.") (license license:expat))) +(define-public go-github-com-pion-sctp + (package + (name "go-github-com-pion-sctp") + (version "1.8.19") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pion/sctp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "19yzpyrlmk3gvpkpn5846rad9cc8ffxw9jqwnpr6szqax7k0l0zw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/pion/sctp")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-pion-logging + go-github-com-pion-randutil + go-github-com-pion-transport-v3)) + (home-page "https://github.com/pion/sctp") + (synopsis "Implementation of SCTP in Golang") + (description + "This package implements the @acronym{Stream Control Transmission +Protocol,SCTP} as specified in +@uref{https://rfc-editor.org/rfc/rfc9260.html,RFC 9260}.") + (license license:expat))) + (define-public go-github-com-pion-stun (package (name "go-github-com-pion-stun") @@ -2172,7 +2745,6 @@ packetizer and depacketizer.") (build-system go-build-system) (arguments (list - #:go go-1.21 #:import-path "github.com/pion/stun")) (native-inputs (list go-github-com-stretchr-testify)) @@ -2207,7 +2779,6 @@ packetizer and depacketizer.") (base32 "0zli55ls5izpr6cw0wj0gy44872xn9rk20i8ay9cfk7j2rb60y60")))) (arguments (list - #:go go-1.21 #:import-path "github.com/pion/stun/v2")) (propagated-inputs (list go-github-com-pion-dtls-v2 @@ -2401,7 +2972,6 @@ it like any library. The quickest way to get started is to look at the (build-system go-build-system) (arguments (list - #:go go-1.18 #:import-path "github.com/pires/go-proxyproto")) (home-page "https://github.com/pires/go-proxyproto") (synopsis "Implementation of the PROXY protocol") @@ -2510,7 +3080,6 @@ to jQuery to the Go language.") (list ;; Tests require ginkgo v2. #:tests? #f - #:go go-1.20 #:import-path "github.com/quic-go/qpack")) (propagated-inputs (list go-github-com-onsi-ginkgo @@ -2542,7 +3111,6 @@ the Go standard library}.") (build-system go-build-system) (arguments (list - #:go go-1.21 #:import-path "github.com/quic-go/quic-go" #:phases #~(modify-phases %standard-phases @@ -2602,11 +3170,10 @@ protocol.") (build-system go-build-system) (arguments (list - #:go go-1.21 #:import-path "github.com/quic-go/webtransport-go")) (native-inputs (list go-go-uber-org-mock - go-github-com-stretchr-testify-next)) + go-github-com-stretchr-testify)) (propagated-inputs (list go-github-com-quic-go-quic-go go-golang-org-x-exp)) @@ -2649,7 +3216,7 @@ support.") (define-public go-github-com-sourcegraph-jsonrpc2 (package (name "go-github-com-sourcegraph-jsonrpc2") - (version "0.1.0") + (version "0.2.0") (home-page "https://github.com/sourcegraph/jsonrpc2") (source (origin @@ -2659,14 +3226,12 @@ support.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1dk0w32k96vxrwnmm24wqx337dn8ylch65qwrbc3wh7whw2xx71q")))) + (base32 "1id35b4mhif9gy1b70mv0x7xkmpm2p8xydix8six10yjyhvm1wjh")))) (build-system go-build-system) (arguments '(#:import-path "github.com/sourcegraph/jsonrpc2")) (propagated-inputs - (list go-github-com-daviddengcn-go-colortext - go-github-com-gorilla-websocket - go-github-com-motemen-go-colorine)) + (list go-github-com-gorilla-websocket)) (synopsis "Provides a client and server implementation of JSON-RPC 2.0") (description "Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.") @@ -2848,6 +3413,68 @@ encoding library for the MessagePack, CBOR, JSON and the Binc formats.") replacement for native @code{net/http} module.") (license license:expat))) +(define-public go-github-com-whyrusleeping-cbor + (package + (name "go-github-com-whyrusleeping-cbor") + (version "0.0.0-20171005072247-63513f603b11") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/whyrusleeping/cbor") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0v3kgzk8grz17my2vhv12qi9dgpx3z86hy9ff1c4qw83mg8hm67s")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/whyrusleeping/cbor" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Replace when go-build-system supports nested path. + (delete 'build) + (replace 'check + (lambda* (#:key import-path tests? #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + ;; No test vectors were provided with git checkout: + ;; var errpath string = "../test-vectors/appendix_a.json" + (substitute* "go/cbor_test.go" + (("TestDecodeVectors") "offTestDecodeVectors")) + (invoke "go" "test" "-v" "./...")))))))) + (home-page "https://github.com/whyrusleeping/cbor") + (synopsis "Concise Binary Object Representation in Golang") + (description + "@acronym{Concise Binary Object Representation,CBOR} is a superset of +JSON's schema that's faster and more compact.") + (license license:asl2.0))) + +(define-public go-github-com-whyrusleeping-chunker + (package + (name "go-github-com-whyrusleeping-chunker") + (version "0.0.0-20181014151217-fe64bd25879f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/whyrusleeping/chunker") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "13q4flp9iwwyi0izqar786h42713rf3m22qlvg0masbmdi69qjr2")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/whyrusleeping/chunker")) + (home-page "https://github.com/whyrusleeping/chunker") + (synopsis "Implementation of Content Defined Chunking in Golang") + (description + "Package chunker implements @acronym{Content Defined Chunking,CDC} based +on a rolling Rabin Checksum. This package provides a modified fork of +https://github.com/restic/restic project.") + (license license:bsd-2))) + (define-public go-github-com-whyrusleeping-json-filter (let ((commit "ff25329a9528f01c5175414f16cc0a6a162a5b8b") (revision "0")) @@ -2873,6 +3500,33 @@ replacement for native @code{net/http} module.") @command{map[string]interface{}}.") (license license:expat)))) +(define-public go-github-com-whyrusleeping-multiaddr-filter + (package + (name "go-github-com-whyrusleeping-multiaddr-filter") + (version "0.0.0-20160516205228-e903e4adabd7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/whyrusleeping/multiaddr-filter") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ksd8vnp207dvphmhrazwldj8if900fnyc1pqa9pfvj04qp92640")))) + (build-system go-build-system) + (arguments + (list + ;; (*testing.common).Fatalf format %s has arg val of wrong type bool + #:tests? #f + #:import-path "github.com/whyrusleeping/multiaddr-filter")) + (home-page "https://github.com/whyrusleeping/multiaddr-filter") + (synopsis "Parsing ip filters and masks in the multiaddr format") + (description + "This module creates very simple +@url{https://github.com/jbenet/go-multiaddr,multiaddr} formatted cidr +netmasks.") + (license license:expat))) + (define-public go-github-com-xeipuuv-gojsonpointer (let ((commit "4e3ac2762d5f479393488629ee9370b50873b3a6") (revision "0")) @@ -2967,6 +3621,82 @@ programming language.") programming language, which supports draft-04, draft-06 and draft-07.") (license license:asl2.0)))) +(define-public go-golang-org-x-oauth2 + (package + (name "go-golang-org-x-oauth2") + (version "0.21.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/oauth2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0pzpa9jqrfxxhxi1w7n5ljnvr9qfw42hzavz62fc9i6z9vk2466k")))) + (build-system go-build-system) + (arguments + (list + #:import-path "golang.org/x/oauth2")) + (propagated-inputs + (list go-cloud-google-com-go-compute-metadata + go-github-com-google-go-cmp)) + (home-page "https://go.googlesource.com/oauth2") + (synopsis "Client implementation of the OAuth 2.0 spec") + (description + "This package contains a client implementation for OAuth 2.0 + spec in Go.") + (license license:bsd-3))) + +(define-public go-golang-zx2c4-com-wireguard + (package + (name "go-golang-zx2c4-com-wireguard") + (version "0.0.0-20231211153847-12269c276173") + (source + (origin + (method git-fetch) + ;; NOTE: module URL is a redirect + ;; target: git.zx2c4.com/wireguard-go + ;; source: golang.zx2c4.com/wireguard + (uri (git-reference + (url "https://git.zx2c4.com/wireguard-go/") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fbc6m0ahifhrd6jdrpdxi8l3b2slpp8fmv20kpq2yzz19vzzgkf")))) + (build-system go-build-system) + (arguments + (list + #:import-path "golang.zx2c4.com/wireguard" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Workaround for go-build-system's lack of Go modules + ;; support. + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "test" "-v" + ;; "./tune/..." ; Requires gvisor.dev/gvisor, not packed yet + "./" + "./conn/..." + "./device/..." + "./ipc/..." + "./ratelimiter/..." + "./replay/..." + "./rwcancel/..." + "./tai64n/...")))))))) + (propagated-inputs + (list go-golang-org-x-crypto + go-golang-org-x-net + go-golang-org-x-sys)) + (home-page "https://git.zx2c4.com/wireguard") + (synopsis "Implementation of WireGuard in Go") + (description "This package is a Go Implementation of WireGuard.") + (license license:expat))) + +;; XXX: This repository has been archived by the owner on Feb 27, 2023. It is +;; now read-only and it is DEPRECATED. (define-public go-gopkg-in-square-go-jose-v2 (package (name "go-gopkg-in-square-go-jose-v2") @@ -2982,11 +3712,16 @@ programming language, which supports draft-04, draft-06 and draft-07.") (base32 "1b1nhqxfmhzwrfk7pkvp2w3z3d0pf5ir00vizmy2d4xdbnldn70r")))) (build-system go-build-system) (arguments - (list #:import-path "gopkg.in/square/go-jose.v2")) + (list + ;; XXX: We strongly encourage users of square/go-jose to migrate to v3 + ;; of go-jose/go-jose. No support, security fixes or updates will be + ;; delivered to the v1/v2 branches in the Square repository. + #:tests? #f + #:import-path "gopkg.in/square/go-jose.v2")) (propagated-inputs (list go-golang-org-x-crypto)) (native-inputs - (list go-github-com-google-go-cmp-cmp + (list go-github-com-google-go-cmp go-github-com-stretchr-testify)) (home-page "https://gopkg.in/square/go-jose.v2") (synopsis "Implementation of JOSE standards (JWE, JWS, JWT) in Go") |