mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
* 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 <sharlatanus@gmail.com>
36 lines
1 KiB
Diff
36 lines
1 KiB
Diff
From 74cda7c7ce34b34b1a378b5e3be02f44bbea09d6 Mon Sep 17 00:00:00 2001
|
|
Message-ID: <74cda7c7ce34b34b1a378b5e3be02f44bbea09d6.1764515163.git.ngraves@ngraves.fr>
|
|
From: Nicolas Graves <ngraves@ngraves.fr>
|
|
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
|
|
|