summaryrefslogtreecommitdiff
path: root/gnu/packages/authentication.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-02-24 21:32:02 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-26 16:50:21 +0100
commit6da134a592f46e5e296f8917aed26256f1e4204e (patch)
treef4de14e5b08bef8cfca87937b850fff4b7b241c2 /gnu/packages/authentication.scm
parent4db91aa8529be93830ee7e0ad5a6c7255762c59d (diff)
gnu: oauth2l: Update to 1.3.2.
* gnu/packages/authentication.scm: Add (gnu packages golang-build), (gnu packages golang-web), (gnu packages golang-xyz), and (guix gexp). (oauth2l): Update to 1.3.2. Fix build. [source] <snippet>: Delete "vendor" directory. [arguments] <install-source?>: Avoid installing go sources for final command. <test-flags>: Skipp tests requiring network access. <phases>: Add 'pre-check. [native-inputs]: Add go-github-com-google-uuid, go-github-com-jessevdk-go-flags, and go-golang-org-x-oauth2. Change-Id: I7ae9e4774dafd0f8a3f4cf64f2e59cfbb74b1f6a
Diffstat (limited to 'gnu/packages/authentication.scm')
-rw-r--r--gnu/packages/authentication.scm40
1 files changed, 37 insertions, 3 deletions
diff --git a/gnu/packages/authentication.scm b/gnu/packages/authentication.scm
index d6b5cedb202..3a1b981207b 100644
--- a/gnu/packages/authentication.scm
+++ b/gnu/packages/authentication.scm
@@ -23,6 +23,9 @@
23 #:use-module (gnu packages autotools) 23 #:use-module (gnu packages autotools)
24 #:use-module (gnu packages documentation) 24 #:use-module (gnu packages documentation)
25 #:use-module (gnu packages gnupg) 25 #:use-module (gnu packages gnupg)
26 #:use-module (gnu packages golang-build)
27 #:use-module (gnu packages golang-web)
28 #:use-module (gnu packages golang-xyz)
26 #:use-module (gnu packages linux) 29 #:use-module (gnu packages linux)
27 #:use-module (gnu packages pkg-config) 30 #:use-module (gnu packages pkg-config)
28 #:use-module (gnu packages security-token) 31 #:use-module (gnu packages security-token)
@@ -32,6 +35,7 @@
32 #:use-module (guix build-system gnu) 35 #:use-module (guix build-system gnu)
33 #:use-module (guix build-system go) 36 #:use-module (guix build-system go)
34 #:use-module (guix download) 37 #:use-module (guix download)
38 #:use-module (guix gexp)
35 #:use-module (guix git-download) 39 #:use-module (guix git-download)
36 #:use-module ((guix licenses) #:prefix license:) 40 #:use-module ((guix licenses) #:prefix license:)
37 #:use-module (guix packages)) 41 #:use-module (guix packages))
@@ -122,7 +126,7 @@ PSKC (RFC6030) to manage secret key data.")
122(define-public oauth2l 126(define-public oauth2l
123 (package 127 (package
124 (name "oauth2l") 128 (name "oauth2l")
125 (version "1.3.0") 129 (version "1.3.2")
126 (source 130 (source
127 (origin 131 (origin
128 (method git-fetch) 132 (method git-fetch)
@@ -131,10 +135,40 @@ PSKC (RFC6030) to manage secret key data.")
131 (commit (string-append "v" version)))) 135 (commit (string-append "v" version))))
132 (file-name (git-file-name name version)) 136 (file-name (git-file-name name version))
133 (sha256 137 (sha256
134 (base32 "0010870xdhf0aysrs2vhl3yxd4gh87qp7mjpyp7qy1n2rz55pgbc")))) 138 (base32 "1gm5pbgmz3p0zk5s4gvslp8ixhak3d35pfm7wrw5yk2rcdffr5li"))
139 (snippet
140 #~(begin (use-modules (guix build utils))
141 (delete-file-recursively "vendor")))))
135 (build-system go-build-system) 142 (build-system go-build-system)
136 (arguments 143 (arguments
137 '(#:import-path "github.com/google/oauth2l")) 144 (list
145 #:install-source? #f
146 #:import-path "github.com/google/oauth2l"
147 #:test-flags
148 #~(list "-skip"
149 ;; Tests requiring network access.
150 (string-join
151 (list "Test2LOFlow/curl._2lo"
152 "Test3LOFlow/curl._3lo"
153 "Test3LOFlow/fetch._3lo_cached"
154 "Test3LOLoopbackFlow/curl._3lo_loopback"
155 "Test3LOLoopbackFlow/fetch._3lo_loopback_cached"
156 "TestCLI/info._invalid_token"
157 "TestSSOFlow/fetch._sso"
158 "TestSSOFlow/fetch._sso._old_interface"
159 "TestServiceAccountImpersonationFlow/fetch._sso.*"
160 "TestStsFlow/fetch._2lo._sts"
161 "TestStsFlow/fetch._sso._sts")
162 "|"))
163 #:phases
164 #~(modify-phases %standard-phases
165 (add-before 'check 'pre-check
166 (lambda _
167 (setenv "HOME" "/tmp"))))))
168 (native-inputs
169 (list go-github-com-google-uuid
170 go-github-com-jessevdk-go-flags
171 go-golang-org-x-oauth2))
138 (home-page "https://github.com/google/oauth2l") 172 (home-page "https://github.com/google/oauth2l")
139 (synopsis "Simple CLI for interacting with Google API authentication") 173 (synopsis "Simple CLI for interacting with Google API authentication")
140 (description 174 (description