[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/13: gnu: Add oauth2ms.
From: |
guix-commits |
Subject: |
06/13: gnu: Add oauth2ms. |
Date: |
Sun, 17 Jul 2022 18:26:45 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 44857d4baaa806f5c6e11fff2e0ba3ba1caaeafc
Author: John Kehayias <john.kehayias@protonmail.com>
AuthorDate: Tue Jul 5 13:13:07 2022 -0400
gnu: Add oauth2ms.
* gnu/packages/python-web.scm (oauth2ms): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/python-web.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 525c3cc0b0..7c5e5651c8 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -73,16 +73,20 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
+ #:use-module (guix build-system copy)
#:use-module (guix build-system python)
#:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages base)
+ #:use-module (gnu packages bash)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages django)
+ #:use-module (gnu packages freedesktop)
+ #:use-module (gnu packages gnupg)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages groff)
#:use-module (gnu packages libevent)
@@ -2987,6 +2991,44 @@ platform. It is built using industry standard OAuth2
and OpenID Connect
protocols.")
(license license:expat)))
+(define-public oauth2ms
+ (let ((commit "a1ef0cabfdea57e9309095954b90134604e21c08")
+ (revision "0"))
+ (package
+ (name "oauth2ms")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/harishkrupo/oauth2ms")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0dqi6n4npdrvb42r672n4sl1jl8z5lsk554fwiiihpj0faa9dx64"))))
+ (build-system copy-build-system)
+ (arguments
+ (list #:install-plan #~`(("oauth2ms" "bin/oauth2ms")
+ ("." #$(string-append "share/doc/" name "-"
+ version "/")
+ #:include-regexp ("\\.org$")))
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'install 'wrap-pythonpath
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((path (getenv "GUIX_PYTHONPATH")))
+ (wrap-program (string-append #$output
+ "/bin/oauth2ms")
+ `("GUIX_PYTHONPATH" ":" prefix
+ (,path)))))))))
+ (inputs (list bash-minimal python python-gnupg python-msal python-pyxdg))
+ (home-page "https://github.com/harishkrupo/oauth2ms")
+ (synopsis "XOAUTH2 compatible Microsoft Office 365 token fetcher")
+ (description
+ "Oauth2ms can be used to fetch OAuth 2.0 tokens from the Microsoft
Identity
+endpoint. Additionally, it can encode the token in the XOAUTH2 format to be
+used as authentication in IMAP mail servers.")
+ (license license:asl2.0))))
+
(define-public python-oauthlib
(package
(name "python-oauthlib")
- branch master updated (17984b0794 -> 236746900f), guix-commits, 2022/07/17
- 03/13: gnu: xl2tpd: Update to 1.3.17., guix-commits, 2022/07/17
- 04/13: doc: Fix the example of "Run `make` automatically", guix-commits, 2022/07/17
- 06/13: gnu: Add oauth2ms.,
guix-commits <=
- 05/13: gnu: Add python-msal., guix-commits, 2022/07/17
- 07/13: gnu: Add gbonds., guix-commits, 2022/07/17
- 09/13: gnu: grass: Update to 7.8.7., guix-commits, 2022/07/17
- 01/13: doc: Tweak., guix-commits, 2022/07/17
- 02/13: gnu: Add pw., guix-commits, 2022/07/17
- 08/13: gnu: libgeotiff: Update to 1.7.1., guix-commits, 2022/07/17
- 10/13: gnu: geos: Update to 3.10.2., guix-commits, 2022/07/17
- 11/13: gnu: pcb2gcode: Update to 2.4.0., guix-commits, 2022/07/17
- 13/13: gnu: qgis: Disable failing tests., guix-commits, 2022/07/17
- 12/13: gnu: saga: Update to 8.2.1., guix-commits, 2022/07/17