From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YBLKDmqLmGE16wAAgWs5BA (envelope-from ) for ; Sat, 20 Nov 2021 06:45:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wbSLCmqLmGEiawAA1q6Kng (envelope-from ) for ; Sat, 20 Nov 2021 05:45:14 +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 BA622141DC for ; Sat, 20 Nov 2021 06:45:13 +0100 (CET) Received: from localhost ([::1]:59814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moJBX-0004sL-64 for larch@yhetil.org; Sat, 20 Nov 2021 00:45:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moJBO-0004r4-FB for guix-patches@gnu.org; Sat, 20 Nov 2021 00:45:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moJBO-0005AB-64 for guix-patches@gnu.org; Sat, 20 Nov 2021 00:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moJBO-0001ZO-48; Sat, 20 Nov 2021 00:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51853] [PATCH v2 1/2] gnu: sendgmail: Rename package to match command. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Sat, 20 Nov 2021 05:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51853 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51853@debbugs.gnu.org Cc: Liliana Marie Prikler X-Debbugs-Original-Xcc: Liliana Marie Prikler Received: via spool by 51853-submit@debbugs.gnu.org id=B51853.16373870485928 (code B ref 51853); Sat, 20 Nov 2021 05:45:02 +0000 Received: (at 51853) by debbugs.gnu.org; 20 Nov 2021 05:44:08 +0000 Received: from localhost ([127.0.0.1]:41345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moJAW-0001XX-3D for submit@debbugs.gnu.org; Sat, 20 Nov 2021 00:44:08 -0500 Received: from mail-qv1-f41.google.com ([209.85.219.41]:40862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moJAQ-0001WW-3N for 51853@debbugs.gnu.org; Sat, 20 Nov 2021 00:44:02 -0500 Received: by mail-qv1-f41.google.com with SMTP id b11so8590935qvm.7 for <51853@debbugs.gnu.org>; Fri, 19 Nov 2021 21:44:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=MG0fWHhj5+0p95ruIdxP4HhsPPQwV9TfeGJS5FfFG9E=; b=EDQWxkkIVPUu86eIZ1vz3Lnxd15+PeFm5h2HBQMHkuFBy0y/Z/39bLdvU9qAnpJ4J4 VZpvgsdfNF5znL/fVITIFtV1A12gG+5wMmzLux7SE8eWuXmBjWin1oy1P4LOA6fdBqBf cMHZ5G6qCKwRGoKcP3CI5VG8tKCuxukIOozUuwe9dogQeiVfkhS0S6AvpjnahEnm6HMs pou5Zjzbs656xHgCmNSmvOS2j3zgWyZ1WiD+9iV9ZZrLJDzpbz1oAWPccXBXdc7CoYSU HMcmQRUjeaZRKjfedMTaUkeysahk8Yho2RIxtolnEMdSl0bEBu5GQqvYyvikKXkjtoqL 9FlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MG0fWHhj5+0p95ruIdxP4HhsPPQwV9TfeGJS5FfFG9E=; b=ThlSFW9n2e4MT8NOUZiJpJppvGqgpLf8qPBEOplXNTgLP/GkMQWKWmisA6l0J4BdJw XK9jGmRP+RaLdL4lvVgLsVqi43hI9rRjktJ3vd8RQicF5jwrmNOksPiSzgIcFwxUuWqD sHEXUoIGQWkklXTzn1L5AGMbqm7Eq55OgLUJDEnt6uBMUyzzgvWUO7Oeo9z/hYdehExW suebeG442cAiAo16bnkPSHjYd57WF5yFqeKM38RMMAPL/rO+SaAj/O9bfKjBZy5HSPW9 kPkaJtivOuU42YBcC83DmIYmawHooxyyOlabDfq1q/uYx18/MQzLwJO5sHVLPaMuGFBH M92Q== X-Gm-Message-State: AOAM533AbVGlCZ8Eqsae51iw9UoFl8ucjwELG0oImPYsFAXDmJsyni6l G09phlAfJpuf++5ZQYqSzfOlHPeLhJIFMw59 X-Google-Smtp-Source: ABdhPJxPD5Z/BdJYevzuWMZ+g4H27wZHw3VihPSDv6TRB7pgt+9WgN0Alo2p0tOj8PixYNjWgxlhBQ== X-Received: by 2002:a0c:eb90:: with SMTP id x16mr80822910qvo.41.1637387036478; Fri, 19 Nov 2021 21:43:56 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id s20sm988263qtc.75.2021.11.19.21.43.56 for <51853@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Nov 2021 21:43:56 -0800 (PST) From: Philip McGrath Date: Sat, 20 Nov 2021 00:43:52 -0500 Message-Id: <20211120054353.987243-2-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211120054353.987243-1-philip@philipmcgrath.com> References: <077cf4ed09eab394f74bb87600e7442525143a53.camel@gmail.com> <20211120054353.987243-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637387113; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=MG0fWHhj5+0p95ruIdxP4HhsPPQwV9TfeGJS5FfFG9E=; b=uUvdW5BAQFGnW280wlEnZsJNNQhysIBnXtPFDWavXzEr3laZUCNZ60RLXRgCXlMDLgxOzT bWWybOPt08+JkTizYyenKN+OCK58wt8TnOtVpFvVi2pigQm7EH2pZPnccaqFiMEPRmcAyF +Mv8ohaEtUeZTmuxxzyd0PQHxFz3G5sA4MKwyY61tUqDBlaXwl8hTUJJPrnZxMHFLgiyQf G0earJLHkGTgc88RysN6B7PVTFGvi20GxYIjJSqHZvjrEukJiVY8FkUM1KWrHajfD88hfO zGBNOhRKX9PDU1EIawpi1VfO8nDJ5B2kbDDXa5NeMBd7puCnoR6CoNlbQDsPRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637387113; a=rsa-sha256; cv=none; b=Ks63ExItSpRL6H7VKAeg2dvJ1Evqc82uUa7dttjlL2VOp1QiIDtJWRPeWZrQuz5pKUQCqv 2P4qdtA/19LgPJOUhAku4OAGqBMHKHpTOLFIvwIP44NlCh4kPbGJ9IuQwiEAvsY/DfW7p5 P/J0wJ4+GkgZk106tEO4p7y8ImLOWPAODeocZ5TxfigbLaE8rgQ1olFGO3AeZBtl8VCvYj HGHnx4lPeCh+Yj8ujC5UrJ4sB1ejTHmGoj6Vx47NEWx/aPqIP9UzzYc3OuIAE61S6PUWf1 N1S7Kl9pkAHMCyreX99o179KuB0zf092ROEelFAzdXRvguB5Z2tPZTuswuf0Pw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=EDQWxkkI; 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: -0.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=EDQWxkkI; dmarc=none; 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: BA622141DC X-Spam-Score: -0.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: fXiRWRqszmKM Suggested by Ludo’ in . * gnu/packages/golang.scm (go-github-com-google-gmail-oauth2-tools-go-sendgmail): Move to ... * gnu/packages/mail.scm (sendgmail): ... this variable. Change `propagated-inputs` to `inputs`. --- gnu/packages/golang.scm | 36 +----------------------------------- gnu/packages/mail.scm | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 35 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cc2a4ebc16..aaf6194460 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Bonface Munyoki Kilyungi ;;; Copyright © 2021 Chadwain Holness +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -3036,41 +3037,6 @@ (define-public go-cloud-google-com-go-compute-metadata 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")) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 0e7134eaf3..891a163f0f 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -43,6 +43,7 @@ ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Benoit Joly ;;; Copyright © 2021 Morgan Smith +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -4642,3 +4643,38 @@ (define-public rss2email ;; GPL version 2 or 3. NOT 2+. (license (list license:gpl2 license:gpl3)))) + +(define-public sendgmail + (let ((commit "e3229155a4037267ce40f1a3a681f53221aa4d8d") + (revision "0")) + (package + (name "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")))) + (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)))) -- 2.32.0