public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-fido2] epel10.2: Fix build with cryptography 45+
@ 2026-08-21 13:51 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-08-21 13:51 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-fido2
Branch : epel10.2
Commit : d9ad6412e1c7de1db41914d4ce0abaffec008ef7
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date   : 2025-06-12T12:59:37-04:00
Stats  : +19/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-fido2/c/d9ad6412e1c7de1db41914d4ce0abaffec008ef7?branch=epel10.2

Log:
Fix build with cryptography 45+

---
diff --git a/0001-cryptography-dep.patch b/0001-cryptography-dep.patch
new file mode 100644
index 0000000..886c269
--- /dev/null
+++ b/0001-cryptography-dep.patch
@@ -0,0 +1,16 @@
+Arbitrary upper bounds such as this do not work well in distributions.
+cryptography 45 is still compatible, and has already been accepted upstream,
+but at some point there will be 46 and so on.
+
+diff -up ./pyproject.toml.orig ./pyproject.toml
+--- ./pyproject.toml.orig	2024-11-26 04:18:51.000000000 -0500
++++ ./pyproject.toml	2025-06-12 12:46:37.547748297 -0400
+@@ -32,7 +32,7 @@ include = [
+ 
+ [tool.poetry.dependencies]
+ python = "^3.8"
+-cryptography = ">=2.6, !=35, <45"
++cryptography = ">=2.6, !=35"
+ pyscard = {version = "^1.9 || ^2", optional = true}
+ 
+ [tool.poetry.extras]

diff --git a/python-fido2.spec b/python-fido2.spec
index 94d67b7..bed0b65 100644
--- a/python-fido2.spec
+++ b/python-fido2.spec
@@ -12,6 +12,9 @@ Summary:        Functionality for FIDO 2.0, including USB device communication
 License:        LicenseRef-Callaway-BSD AND Apache-2.0 AND MPL-2.0
 URL:            https://github.com/Yubico/python-fido2
 Source0:        https://github.com/Yubico/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
+# Fix build with cryptography 45+
+Patch0:         0001-cryptography-dep.patch
+
 BuildArch:      noarch
 
 %global _description\

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-21 13:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-21 13:51 [rpms/python-fido2] epel10.2: Fix build with cryptography 45+ Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox