Subject: [bug#37444] [PATCH v4 01/24] added go package go-golang-org-x-oauth2

From: Martin Becze <[email-masked]>
Date: Tue, 1 Oct 2019 17:37:03 -0400

* gnu/packages/golang.scm (go-golang-org-x-oauth2): add package
---
 gnu/packages/golang.scm | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 819cc6229e..bf1a45f135 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -16,7 +16,8 @@
 ;;; Copyright @ 2019 Giovanni Biscuolo <[email-masked]>
 ;;; Copyright @ 2019 Alex Griffin <[email-masked]>
 ;;; Copyright © 2019 Arun Isaac <[email-masked]>
-;;;
+;;; Copyright © 2019 Martin Becze <[email-masked]>
+;;
 ;;; This file is part of GNU Guix.
 ;;;
 ;;; GNU Guix is free software; you can redistribute it and/or modify it
@@ -1348,6 +1349,34 @@ limiting in Go.")
     (description "This package provides @{terminal}, which implements support
 functions for dealing with terminals, as commonly found on UNIX systems.")))
 
+(define-public go-golang-org-x-oauth2
+  (let ((commit "0f29369cfe4552d0e4bcddc57cc75f4d7e672a33")
+        (url "https://go.googlesource.com/oauth2"))
+    (package
+      (name "go-golang-org-x-oauth2")
+      (version (git-version "0.0.0" "0" commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url url)
+                      (commit commit)))
+                (file-name (string-append "go.googlesource.com-oauth2-"
+                                          version "-checkout"))
+                (sha256
+                 (base32
+                  "06jwpvx0x2gjn2y959drbcir5kd7vg87k0r1216abk6rrdzzrzi2"))))
+      (build-system go-build-system)
+      (arguments
+       `(#:import-path "golang.org/x/oauth2"))
+      (propagated-inputs
+       `(("go-golang-org-x-net-context" ,go-golang-org-x-net-context)))
+      (synopsis "This package contains a client implementation for OAuth 2.0
+ spec.")
+      (description "This package contains a client implementation for OAuth 2.0
+ spec.")
+      (home-page url)
+      (license license:bsd-3))))
+
 (define-public go-github-com-burntsushi-toml
   (package
     (name "go-github-com-burntsushi-toml")
-- 
2.23.0