From patchwork Wed Nov 3 12:14:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34224 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7043727BBE3; Wed, 3 Nov 2021 12:15:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 286F327BBE1 for ; Wed, 3 Nov 2021 12:15:27 +0000 (GMT) Received: from localhost ([::1]:57368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miFAs-0002h9-An for patchwork@mira.cbaines.net; Wed, 03 Nov 2021 08:15:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miFAU-0002g5-H1 for guix-patches@gnu.org; Wed, 03 Nov 2021 08:15:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miFAU-000372-5C for guix-patches@gnu.org; Wed, 03 Nov 2021 08:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1miFAU-0006n6-04 for guix-patches@gnu.org; Wed, 03 Nov 2021 08:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44814] [PATCH v2] gnu: Add oauth2l. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Nov 2021 12:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44814 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: "44814@debbugs.gnu.org" <44814@debbugs.gnu.org> Received: via spool by 44814-submit@debbugs.gnu.org id=B44814.163594167726042 (code B ref 44814); Wed, 03 Nov 2021 12:15:01 +0000 Received: (at 44814) by debbugs.gnu.org; 3 Nov 2021 12:14:37 +0000 Received: from localhost ([127.0.0.1]:39327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miFA1-0006ls-KS for submit@debbugs.gnu.org; Wed, 03 Nov 2021 08:14:37 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:17701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miF9z-0006ld-OW for 44814@debbugs.gnu.org; Wed, 03 Nov 2021 08:14:32 -0400 Date: Wed, 03 Nov 2021 12:14:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1635941665; bh=f04vy2P5B1cqBYJEhgNzEMfwBYZeq2SpkQoIeYimxuE=; h=Date:To:From:Reply-To:Subject:From; b=EZUPsw7W4WgxWK7zH1c8uw/dBjbCfy4tBsLLP0w8/JFXNe6xMHLP0+8pgdftJguPq 72Co8n73qUiOnFJNbPdPKLUaO3DMVmg4l8u0/tAiWp4WYdHGa8T8Qn+TFJekhMFk3m pdsIv7pN3ryp+zq9Ewp4A232mPK4mkENZx4s6sZc= Message-ID: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Here's updated version of the patch. Otherwise LGTM. * gnu/packages/authentication.scm (oauth2l): New variable. --8<---------------cut here---------------start------------->8--- --- 2.33.1 diff --git a/gnu/packages/authentication.scm b/gnu/packages/authentication.scm index a8070f4789..487b7171b1 100644 --- a/gnu/packages/authentication.scm +++ b/gnu/packages/authentication.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2019, 2020 Ricardo Wurmus +;;; Copyright © 2020 B. Wilson ;;; ;;; This file is part of GNU Guix. ;;; @@ -27,6 +28,7 @@ (define-module (gnu packages authentication) #:use-module (gnu packages tls) #:use-module (gnu packages xml) #:use-module (guix build-system gnu) + #:use-module (guix build-system go) #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -91,6 +93,32 @@ (define-public oath-toolkit (license (list license:lgpl2.1+ ; the libraries (liboath/ & libpskc/) license:gpl3+)))) ; the tools (everything else) +(define-public oauth2l + (package + (name "oauth2l") + (version "1.2.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/oauth2l") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0a9x0b31ybyjg0k7923xw6zr6crm0kigcn8g6hyr228nbvw35r8w")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/google/oauth2l")) + (home-page "https://github.com/google/oauth2l") + (synopsis "Simple CLI for interacting with Google API authentication") + (description + "@code{oauth2l} (pronounced ``oauth tool'') is a simple command-line tool +for working with @url{https://developers.google.com/identity/protocols/OAuth2, +Google OAuth 2.0} written in Go. Its primary use is to fetch and print OAuth +2.0 access tokens, which can be used with other command-line tools and +scripts.") + (license license:asl2.0))) + (define-public yubico-pam (let ((commit "b5bd00db81e0e0e0ecced65c684080bb56ddc35b") (revision "0"))