[packages/python3-fido2] - patched to allow cryptography 40..42, updated dependencies; release 2
qboosh
qboosh at pld-linux.org
Sat Feb 3 10:26:02 CET 2024
commit 9175e7a09c68d9dc4f04cdda9714349a596aaadd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Feb 3 09:16:13 2024 +0100
- patched to allow cryptography 40..42, updated dependencies; release 2
fido2-cryptography.patch | 11 +++++++++++
fido2-ctap2.patch | 22 ++++++++++++++++++++++
python3-fido2.spec | 24 +++++++++++++-----------
3 files changed, 46 insertions(+), 11 deletions(-)
---
diff --git a/python3-fido2.spec b/python3-fido2.spec
index c6fbdd6..f6ff5b5 100644
--- a/python3-fido2.spec
+++ b/python3-fido2.spec
@@ -1,12 +1,13 @@
#
# Conditional build:
-%bcond_with tests # unit tests
+%bcond_with tests # unit tests (some failing with py3.10)
Summary: Python 3 based FIDO 2.0 library
Summary(pl.UTF-8): Biblioteka FIDO 2.0 dla Pythona 3
Name: python3-fido2
+# 1.1.1+ use poetry as buildsystem
Version: 1.1.0
-Release: 1
+Release: 2
# Yubico code is BSD licensed; includes also:
# pyudf (Apache 2.0)
# public suffix list (MPL 2.0)
@@ -15,19 +16,18 @@ Group: Libraries/Python
#Source0Download: https://github.com/Yubico/python-fido2/releases
Source0: https://github.com/Yubico/python-fido2/releases/download/%{version}/fido2-%{version}.tar.gz
# Source0-md5: ee9c06204d6eac131b4f7ca6360b0090
+Patch0: fido2-ctap2.patch
+Patch1: fido2-cryptography.patch
URL: https://developers.yubico.com/python-fido2/
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
%if %{with tests}
-BuildRequires: python3-cryptography >= 1.0
-BuildRequires: python3-pyfakefs >= 2.4
-BuildRequires: python3-six
+BuildRequires: python3-cryptography >= 2.6
+BuildRequires: python3-cryptography < 43
%endif
-Requires: python3-cryptography >= 1.0
-Requires: python3-modules >= 1:3.4
-Requires: python3-six
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -42,12 +42,14 @@ FIDO po USB, a także weryfikowania podpisów poświadczeń i zapewnień.
%prep
%setup -q -n fido2-%{version}
+%patch0 -p1
+%patch1 -p1
%build
%py3_build
%if %{with tests}
-%{__python3} -m unittest discover -s test
+%{__python3} -m unittest discover -s tests
%endif
%install
diff --git a/fido2-cryptography.patch b/fido2-cryptography.patch
new file mode 100644
index 0000000..bb04b99
--- /dev/null
+++ b/fido2-cryptography.patch
@@ -0,0 +1,11 @@
+--- fido2-1.1.0/setup.py.orig 2022-10-17 15:42:20.653279300 +0200
++++ fido2-1.1.0/setup.py 2024-02-03 09:14:44.265262432 +0100
+@@ -8,7 +8,7 @@ package_data = \
+ {'': ['*']}
+
+ install_requires = \
+-['cryptography>=2.6,!=35,<40']
++['cryptography>=2.6,!=35,<43']
+
+ extras_require = \
+ {'pcsc': ['pyscard>=1.9,<3']}
diff --git a/fido2-ctap2.patch b/fido2-ctap2.patch
new file mode 100644
index 0000000..ea383a8
--- /dev/null
+++ b/fido2-ctap2.patch
@@ -0,0 +1,22 @@
+From 9c980040da63c9ce08ed9a3b366aa2445b03a0bc Mon Sep 17 00:00:00 2001
+From: Fabian Kaczmarczyck <kaczmarczyck at google.com>
+Date: Mon, 5 Dec 2022 22:27:43 +0100
+Subject: [PATCH] Fixes largeBlob to be consistent with CTAP2
+
+---
+ fido2/ctap2/blob.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/fido2/ctap2/blob.py b/fido2/ctap2/blob.py
+index 03f267f..2363386 100644
+--- a/fido2/ctap2/blob.py
++++ b/fido2/ctap2/blob.py
+@@ -166,7 +166,7 @@ def write_blob_array(self, blob_array: Sequence[Mapping[int, Any]]) -> None:
+ self.ctap.large_blobs(
+ offset,
+ set=_set,
+- length=ln,
++ length=size if offset == 0 else None,
+ pin_uv_protocol=pin_uv_protocol,
+ pin_uv_param=pin_uv_param,
+ )
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-fido2.git/commitdiff/9175e7a09c68d9dc4f04cdda9714349a596aaadd
More information about the pld-cvs-commit
mailing list