From patchwork Tue Jul 5 17:24:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 40523 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 2E2A827BBEA; Tue, 5 Jul 2022 18:25:29 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CFD7827BBE9 for ; Tue, 5 Jul 2022 18:25:28 +0100 (BST) Received: from localhost ([::1]:47134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8mIi-0007so-0r for patchwork@mira.cbaines.net; Tue, 05 Jul 2022 13:25:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8mII-0007qM-WA for guix-patches@gnu.org; Tue, 05 Jul 2022 13:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8mII-0000zE-MT for guix-patches@gnu.org; Tue, 05 Jul 2022 13:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o8mII-0007Nl-JH for guix-patches@gnu.org; Tue, 05 Jul 2022 13:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56404] [PATCH 1/2] gnu: Add python-msal. References: In-Reply-To: Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Jul 2022 17:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56404 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "56404@debbugs.gnu.org" <56404@debbugs.gnu.org> Received: via spool by 56404-submit@debbugs.gnu.org id=B56404.165704188428349 (code B ref 56404); Tue, 05 Jul 2022 17:25:02 +0000 Received: (at 56404) by debbugs.gnu.org; 5 Jul 2022 17:24:44 +0000 Received: from localhost ([127.0.0.1]:51569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8mHr-0007N2-Jc for submit@debbugs.gnu.org; Tue, 05 Jul 2022 13:24:44 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:30076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8mHp-0007Mn-G7 for 56404@debbugs.gnu.org; Tue, 05 Jul 2022 13:24:33 -0400 Date: Tue, 05 Jul 2022 17:24:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1657041867; x=1657301067; bh=+KKVUr4QLRNf3pi65l9XRVJ+ETFGM4WR56BqFqKiIwE=; h=Date:To:From:Reply-To:Subject:Message-ID:Feedback-ID:From:To:Cc: Date:Subject:Reply-To:Feedback-ID:Message-ID; b=v0ExFyaLV1N5cBlfTuuImFMfmm5yfd/JiU66B9TR2g7lijoyKudEJQ1FwhdAK9f9n Nt1pLp00HdX/5GVZn1cmkAYo6M3w2LicPQufXSbu+1+jmaPi4qPN3ArF2qkVNKMoeR wIJNODGU3ruXL3+n0V+/ToImW952AwhRcS9e7ZeiVbbPRKrb/GwxfmWMeUsQTgbdyt jLZOBT1FifJqGnN6G/6X+yz15PNu6lBzAOGsANlOKe3PeV840ra0cMVoKNl+CWKd7J 0T3hd4uNEZ7Mr7WXNbY4zDLAiP6HCAy8RT5pekPENp7diFo0UR9PYtq0qUBHb7LZRL wLiwHKvn9F5Ag== Message-ID: Feedback-ID: 7805494:user:proton 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" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias X-getmail-retrieved-from-mailbox: Patches Empty Message From 4667c19525d5a2e602e13fde46120d4dcac0d6b9 Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Tue, 5 Jul 2022 13:12:43 -0400 Subject: [PATCH 1/2] gnu: Add python-msal. * gnu/packages/python-web.scm (python-msal): New variable. --- gnu/packages/python-web.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6f951595c8..a2dcf49569 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2954,6 +2954,38 @@ (define-public python-requests-ftp adapter for use with the Requests library.") (license license:asl2.0))) +(define-public python-msal + (package + (name "python-msal") + (version "1.18.0") + (home-page + "https://github.com/AzureAD/microsoft-authentication-library-for-python") + (source (origin + (method git-fetch) + ;; Pypi does not have tests. + (uri (git-reference (url home-page) (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "02d9vlvp08q1yffgn7a0y19451py1jly67q5ld6m2d9xidbrvac1")))) + (build-system python-build-system) + (arguments + ;; Tests (all?) rely on network access and only some can be disabled by + ;; setting the environment variable TRAVIS_TAG. + (list #:tests? #f)) + (native-inputs (list python-mock)) + (propagated-inputs (list python-cryptography python-pyjwt python-requests)) + (synopsis "Microsoft Authentication Library (MSAL) for Python") + (description + "The Microsoft Authentication Library for Python enables applications to +integrate with the Microsoft identity platform. It allows you to sign in +users or apps with Microsoft identities (Azure AD, Microsoft Accounts and +Azure AD B2C accounts) and obtain tokens to call Microsoft APIs such as +Microsoft Graph or your own APIs registered with the Microsoft identity +platform. It is built using industry standard OAuth2 and OpenID Connect +protocols.") + (license license:expat))) + (define-public python-oauthlib (package (name "python-oauthlib") -- 2.36.1