From patchwork Mon Sep 6 05:37:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 32658 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 4485D27BBE1; Mon, 6 Sep 2021 06:39:53 +0100 (BST) 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, 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 7F5E927BBE3 for ; Mon, 6 Sep 2021 06:39:52 +0100 (BST) Received: from localhost ([::1]:49764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mN7MF-0002DD-Jj for patchwork@mira.cbaines.net; Mon, 06 Sep 2021 01:39:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mN7LX-0002C9-M1 for guix-patches@gnu.org; Mon, 06 Sep 2021 01:39:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mN7LT-0006PF-0u for guix-patches@gnu.org; Mon, 06 Sep 2021 01:39:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mN7LS-0006S0-VQ for guix-patches@gnu.org; Mon, 06 Sep 2021 01:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50420] [PATCH 2/2] gnu: Add go-github-com-google-gmail-oauth2-tools-go-sendgmail. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Sep 2021 05:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50420 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50420@debbugs.gnu.org Cc: Philip McGrath Received: via spool by 50420-submit@debbugs.gnu.org id=B50420.163090672224765 (code B ref 50420); Mon, 06 Sep 2021 05:39:02 +0000 Received: (at 50420) by debbugs.gnu.org; 6 Sep 2021 05:38:42 +0000 Received: from localhost ([127.0.0.1]:51396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mN7L8-0006RN-55 for submit@debbugs.gnu.org; Mon, 06 Sep 2021 01:38:42 -0400 Received: from mail-qk1-f170.google.com ([209.85.222.170]:45909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mN7L7-0006Qy-9J for 50420@debbugs.gnu.org; Mon, 06 Sep 2021 01:38:41 -0400 Received: by mail-qk1-f170.google.com with SMTP id a10so5865605qka.12 for <50420@debbugs.gnu.org>; Sun, 05 Sep 2021 22:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cZIhRiA6PUxG0T+AKi68WKK0nZOP1+Q6IzFZ3HOGXyA=; b=RClDMxuBHfBWJ1sjWb7uiBZK9WieCdKigUq1i5jY3wcC6MtgpGet74AVv16o3Ymi4W JHvzptnz6omOn2rw8ysk2iQbpBKv5HGT+4xD4UMczXUHxUB8dEl2ymcvRTaJf3+3GLzG r2UUoiRO+a8ejrmfcFhjWEZX7+pjTOZBDmF2UQW8MeG1F7Cc4P5RuwhAv6gElTNtkpDL J8rO5Uk7xNmDkzsPp88ilbm1d5w2Qp638Njwa4zWIg/ce06rb6I3BV0qoY93789IV9RH gaSIJN/jeg+Zq2QiafqU/tuWaxAJCgUTDOioklPT8md1xmxuULPY4QUslNbQfS1OKC74 nilA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cZIhRiA6PUxG0T+AKi68WKK0nZOP1+Q6IzFZ3HOGXyA=; b=qGZQHw8ZJ9N33Tws+cuE/L9Ahe++EOs6+nt0lDew2ts9q4WzDGEBet39YwceE+Z0cM mr1kQ6FsLDvasYB7mrNKDUH6xjYN2vW4I4o9tYgblBypHYIbm0cTNyej3NDnj9EODEaP NcOht74NW8ngLT+fq6AzpWn0Lr1UozkQCQcsS+Yn5hZ55vBWL+09b/eUjE+SkY1DzzYu HLdnXZng8yPORRm9gT44PBChpedKi6aFOVrjVNFPvTZ1RTYWOMNJjrDCYtZqOj8g0756 sYICMBtvRvzTx2EA2Ii1Zit1iwfRMb1kgYctOh/DTeNiuO/FKROwo0YDVGU5+xErBuuU RTHA== X-Gm-Message-State: AOAM533orEqZfx5Fh0Xb+e3t5Lw4pwg/nAh2gvi1vZiDURoX+sY272YO mP2kFjJShgvYMNPX/oZrhePFb1gHyNHWBvlW X-Google-Smtp-Source: ABdhPJy0e6TWi5S5voTSefuGDUvoI0CjnP1zxT29TSQPlbni3XEdrQqp5inim1FuLLBHPsvMjRj2vA== X-Received: by 2002:a37:f705:: with SMTP id q5mr9638163qkj.523.1630906715270; Sun, 05 Sep 2021 22:38:35 -0700 (PDT) Received: from localhost ([2601:589:4900:c80:3d4:6a56:4476:ffaf]) by smtp.gmail.com with ESMTPSA id h6sm4757364qtn.51.2021.09.05.22.38.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Sep 2021 22:38:35 -0700 (PDT) From: Philip McGrath Date: Mon, 6 Sep 2021 01:37:52 -0400 Message-Id: <20210906053752.506357-2-philip@philipmcgrath.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210906053752.506357-1-philip@philipmcgrath.com> References: <20210906053607.505949-1-philip@philipmcgrath.com> <20210906053752.506357-1-philip@philipmcgrath.com> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-github-com-google-gmail-oauth2-tools-go-sendgmail): New variable. --- gnu/packages/golang.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 7980859b26..214365c73b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2781,6 +2781,41 @@ with the HTTP protocol definition.") API service accounts for Go.") (license license:asl2.0))) +(define-public go-github-com-google-gmail-oauth2-tools-go-sendgmail + (let ((commit "e3229155a4037267ce40f1a3a681f53221aa4d8d") + (revision "0")) + (package + (name "go-github-com-google-gmail-oauth2-tools-go-sendgmail") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/gmail-oauth2-tools") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1cxpkiaajhq1gjsg47r2b5xgck0r63pvkyrkm7af8c8dw7fyn64f")))) + (propagated-inputs + `(("go-golang-org-x-oauth2" ,go-golang-org-x-oauth2) + ("go-cloud-google-com-go-compute-metadata" + ,go-cloud-google-com-go-compute-metadata))) + (build-system go-build-system) + (arguments + '(#:unpack-path "github.com/google/gmail-oauth2-tools" + #:import-path "github.com/google/gmail-oauth2-tools/go/sendgmail")) + (home-page + "https://github.com/google/gmail-oauth2-tools/tree/master/go/sendgmail") + (synopsis + "Sendmail-compatible tool for using Gmail with @code{git send-email}") + (description + "The @command{sendgmail} command provides a minimal sendmail-compatible +front-end that connects to Gmail using OAuth2. It is specifically designed +for use with @code{git send-email}. The command needs a Gmail API key to +function.") + (license license:asl2.0)))) + (define-public go-github-com-google-cadvisor (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd") (revision "0"))