From 6656a7896c3e3c8ed954cffda7aca10f00080e53 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 30 Nov 2025 16:32:54 +0100 Subject: gnu: python-msal: Update to 1.34.0. * gnu/packages/python-web.scm (python-msal): Update to 1.34.0. [build-system]: Switch to pyproject-build-system. [arguments]<#:tests?>: Run them. <#:test-flags>: Ignoring failing tests. <#:phases>: Add phases 'set-cryptography-version and 'configure-tests. [native-inputs]: Add nss-certs-for-test, python-pytest, python-setuptools. Change-Id: I73e6ea369df191bdd0a0df670867acd527382319 Signed-off-by: Sharlatan Hellseher --- gnu/packages/patches/python-msal-requests.patch | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 gnu/packages/patches/python-msal-requests.patch (limited to 'gnu/packages/patches/python-msal-requests.patch') diff --git a/gnu/packages/patches/python-msal-requests.patch b/gnu/packages/patches/python-msal-requests.patch new file mode 100644 index 00000000000..cc12984c775 --- /dev/null +++ b/gnu/packages/patches/python-msal-requests.patch @@ -0,0 +1,36 @@ +From 74cda7c7ce34b34b1a378b5e3be02f44bbea09d6 Mon Sep 17 00:00:00 2001 +Message-ID: <74cda7c7ce34b34b1a378b5e3be02f44bbea09d6.1764515163.git.ngraves@ngraves.fr> +From: Nicolas Graves +Date: Sun, 30 Nov 2025 16:05:39 +0100 +Subject: [PATCH] Replace requests.get by a placeholder + +--- + tests/test_cryptography.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/tests/test_cryptography.py b/tests/test_cryptography.py +index b119e59..8948ab0 100644 +--- a/tests/test_cryptography.py ++++ b/tests/test_cryptography.py +@@ -3,7 +3,6 @@ import os + import re + from unittest import TestCase + import warnings +-import xml.etree.ElementTree as ET + + import requests + +@@ -11,9 +10,7 @@ from msal.application import ( + _str2bytes, _load_private_key_from_pem_str, _parse_pfx) + + +-latest_cryptography_version = ET.fromstring( +- requests.get("https://pypi.org/rss/project/cryptography/releases.xml").text +- ).findall("./channel/item/title")[0].text ++latest_cryptography_version = @version@ + + + def get_current_ceiling(): +-- +2.51.2 + -- cgit v1.3