From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id INJNLmB9gmGDNwAAgWs5BA (envelope-from ) for ; Wed, 03 Nov 2021 13:15:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gA0bKmB9gmGEBgAA1q6Kng (envelope-from ) for ; Wed, 03 Nov 2021 12:15:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 14566C222 for ; Wed, 3 Nov 2021 13:15:28 +0100 (CET) Received: from localhost ([::1]:57368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miFAs-0002h9-UN for larch@yhetil.org; 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635941728; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=f04vy2P5B1cqBYJEhgNzEMfwBYZeq2SpkQoIeYimxuE=; b=SnB0yvSnjsVLGJBEgUUZz8V1GxZJU7ccNBtKMs5NTlra8xfZAarhmFSCpZFQz8jhPvcsox tgy15AHMs2RTSq8xc73kHQbb9jSsu0oX1RcBou3it4FfsoGGhaqX50q3IOYYYuqBAzPDL+ jNdgSp0Mo4GNxylDgV305V73kMHNnmqhhaVb0/ad4eBxo/wv5HBHiApUwlHrpj1k5NdD59 XchNhWUCPlbxACVsnTYDKV1KdBDGKxKkxwH9Hbcy6XK176X2X6yt3AURc/JWrylbQCX9rC oAQXwUDmUUgOcebZmEP9TR/zMUwBmk6O0McXssJd6FlnPQcR3cLcjyGi8P5qLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635941728; a=rsa-sha256; cv=none; b=mCayL16RNM7gEv2qgrWz6dX3ildW+Vs5+4smpQbRbOK+ajP0Hwuk717UXF+RJ8Z2QhnL/4 GYBjC86BOOGWe84asypALzWUX73ZqA/IHGNJ+6wMGlPx6R+fgH5mhvmEbKTSA5DqZ7Rupb PZmxDw3kOfBIwY0cmtzREHMEj9GFAy54JGcJMbfEmfbC7sp/GseJpjmc76BrwHdtiMBxvp xxjUlyDSVZKCupe+wR7l1cMz2kV5Ww3WIul5D4yZQUsR8XfoEzt0NyySk0zKlYg3jl5itA MYBbmGp6TpBy+PbRT3/cWNZAGDnzJSOJ0LHbUQZ4kCwkh4vpgnf5EmqhJkQHsA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=EZUPsw7W; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=EZUPsw7W; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 14566C222 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: bNYBGlNJadaf Here's updated version of the patch. Otherwise LGTM. * gnu/packages/authentication.scm (oauth2l): New variable. --8<---------------cut here---------------start------------->8--- 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 =C2=A9 2018, 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2019, 2020 Ricardo Wurmus +;;; Copyright =C2=A9 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/ & libpsk= c/) 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/OAu= th2, +Google OAuth 2.0} written in Go. Its primary use is to fetch and print OA= uth +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")) -- 2.33.1