From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edJOc-0000tk-If for guix-patches@gnu.org; Sun, 21 Jan 2018 12:27:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edJOZ-0006Kp-LN for guix-patches@gnu.org; Sun, 21 Jan 2018 12:27:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edJOZ-0006KQ-HX for guix-patches@gnu.org; Sun, 21 Jan 2018 12:27:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1edJOZ-0001uO-By for guix-patches@gnu.org; Sun, 21 Jan 2018 12:27:03 -0500 Subject: [bug#30194] [PATCH 4/6] gnu: Add emacs-oauth2. Resent-Message-ID: From: Ricardo Wurmus Date: Sun, 21 Jan 2018 18:25:37 +0100 Message-Id: <20180121172539.19408-4-rekado@elephly.net> In-Reply-To: <20180121172539.19408-1-rekado@elephly.net> References: <20180121172539.19408-1-rekado@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30194@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/emacs.scm (emacs-oauth2): New variable. --- gnu/packages/emacs.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 82bdacbb7..7e593e1f9 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -6533,6 +6533,31 @@ writers, to write applications that use WebSockets, and is not useful by itself.") (license license:gpl3+))) +(define-public emacs-oauth2 + (package + (name "emacs-oauth2") + (version "0.11") + (source + (origin + (method url-fetch) + (uri (string-append "https://elpa.gnu.org/packages/oauth2-" + version ".el")) + (sha256 + (base32 + "0ydkc9jazsnbbvfhd47mql52y7k06n3z7r0naqxkwb99j9blqsmp")))) + (build-system emacs-build-system) + (home-page "http://elpa.gnu.org/packages/oauth2.html") + (synopsis "OAuth 2.0 authorization protocol implementation") + (description + "This package provides an Elisp implementation of the OAuth 2.0 draft. +The main entry point is @code{oauth2-auth-and-store} which will return a token +structure. This token structure can be then used with +@code{oauth2-url-retrieve-synchronously} or @code{oauth2-url-retrieve} to +retrieve any data that need OAuth authentication to be accessed. If the token +needs to be refreshed, the code handles it automatically and stores the new +value of the access token.") + (license license:gpl3+))) + (define-public emacs-bash-completion (package (name "emacs-bash-completion") -- 2.15.0