python313Packages.mozilla-django-oidc: fix tests with latest cryptography

This commit is contained in:
K900
2025-10-08 21:08:46 +03:00
parent 46feaaf221
commit b158d3e444
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/tests/test_auth.py b/tests/test_auth.py
index 345de64..a78dab4 100644
--- a/tests/test_auth.py
+++ b/tests/test_auth.py
@@ -1219,7 +1219,7 @@ def test_es256_alg_verification(self, mock_requests):
self.backend = OIDCAuthenticationBackend()
# Generate a private key to create a test token with
- private_key = ec.generate_private_key(ec.SECP256R1, default_backend())
+ private_key = ec.generate_private_key(ec.SECP256R1(), default_backend())
# Make the public key available through the JWKS response
public_numbers = private_key.public_key().public_numbers()

View File

@@ -22,6 +22,12 @@ buildPythonPackage rec {
hash = "sha256-72F1aLLIId+YClTrpOz3bL8LSq6ZhZjjtv8V/GJGkqs=";
};
# Fix test with latest cryptography
# Upstream PR: https://github.com/mozilla/mozilla-django-oidc/pull/556
patches = [
./cryptography.patch
];
nativeBuildInputs = [
setuptools
];