me
/
guix
Archived
1
0
Fork 0

gnu: Add go-github-com-golang-jwt-jwt.

* gnu/packages/golang-crypto.scm (go-github-com-golang-jwt-jwt-v4): New variable.
(go-github-com-golang-jwt-jwt-v4): Inherit from go-github-com-golang-jwt-jwt.

Change-Id: I2382208434859b7a9b9a314930fa8769072964c7
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
master
Jesse Eisses 2024-04-26 10:01:48 +02:00 committed by Sharlatan Hellseher
parent 014875b29e
commit 223c531ec4
No known key found for this signature in database
GPG Key ID: 76D727BFF62CD2B5
1 changed files with 30 additions and 11 deletions

View File

@ -20,6 +20,7 @@
;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com>
;;; Copyright © 2023 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;; Copyright © 2024 Jesse Eisses <jesse@eisses.email>
;;;
;;; This file is part of GNU Guix.
;;;
@ -453,8 +454,36 @@ providing bidirectional mapping values to their names, plus enum convenience
for values.")
(license license:bsd-3)))
(define-public go-github-com-golang-jwt-jwt
(package
(name "go-github-com-golang-jwt-jwt")
(version "3.2.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/golang-jwt/jwt")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0hq8wz11g6kddx9ab0icl5h3k4lrivk1ixappnr5db2ng2wjks9c"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/golang-jwt/jwt"))
(home-page "https://github.com/golang-jwt/jwt")
(synopsis "Go implementation of JSON Web Tokens")
(description
"This package provides a Go implementation of
@url{https://datatracker.ietf.org/doc/html/rfc7519, JSON Web Tokens} and
supports the parsing and verification as well as the generation and signing of
JSON Web Tokens. The currently supported signing algorithms are HMAC SHA,
RSA, RSA-PSS, and ECDSA, though hooks are present for adding your own.")
(license license:expat)))
(define-public go-github-com-golang-jwt-jwt-v4
(package
(inherit go-github-com-golang-jwt-jwt)
(name "go-github-com-golang-jwt-jwt-v4")
(version "4.5.0")
(source
@ -466,19 +495,9 @@ for values.")
(file-name (git-file-name name version))
(sha256
(base32 "1m7c9lwlmd0lnn0hyby1rb3f4nwn4xcjgca218frj0hi0krqn8kp"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/golang-jwt/jwt/v4"))
(home-page "https://github.com/golang-jwt/jwt")
(synopsis "Go implementation of JSON Web Tokens")
(description
"This package provides a Go implementation of
@url{https://datatracker.ietf.org/doc/html/rfc7519, JSON Web Tokens} and
supports the parsing and verification as well as the generation and signing of
JSON Web Tokens. The currently supported signing algorithms are HMAC SHA,
RSA, RSA-PSS, and ECDSA, though hooks are present for adding your own.")
(license license:expat)))
#:import-path "github.com/golang-jwt/jwt/v4"))))
(define-public go-github-com-golang-jwt-jwt-v5
(package