[packages/python-fido2] up to 0.9.1

atler atler at pld-linux.org
Wed Mar 3 13:11:43 CET 2021


commit 591dbe066ef6b65ec8bd571adbc306764b4f4c40
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Mar 3 13:11:28 2021 +0100

    up to 0.9.1

 python-fido2-mock.patch | 18 ++----------------
 python-fido2.spec       |  6 +++---
 2 files changed, 5 insertions(+), 19 deletions(-)
---
diff --git a/python-fido2.spec b/python-fido2.spec
index 70d807f..1bfd276 100644
--- a/python-fido2.spec
+++ b/python-fido2.spec
@@ -7,8 +7,8 @@
 Summary:	Python 2 based FIDO 2.0 library
 Summary(pl.UTF-8):	Biblioteka FIDO 2.0 dla Pythona 2
 Name:		python-fido2
-Version:	0.8.1
-Release:	2
+Version:	0.9.1
+Release:	1
 # Yubico code is BSD licensed; includes also:
 # pyudf (Apache 2.0)
 # public suffix list (MPL 2.0)
@@ -16,7 +16,7 @@ License:	BSD, Apache v2.0, MPL v2.0
 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:	f691a99d1223ab00607d56430b27804e
+# Source0-md5:	bf661f7949a057440e52aad6595a24fa
 Patch0:		%{name}-mock.patch
 URL:		https://developers.yubico.com/python-fido2/
 BuildRequires:	rpm-pythonprov
diff --git a/python-fido2-mock.patch b/python-fido2-mock.patch
index 330d7ed..3152397 100644
--- a/python-fido2-mock.patch
+++ b/python-fido2-mock.patch
@@ -16,7 +16,7 @@
 --- fido2-0.3.0/test/test_ctap1.py.orig	2018-04-05 14:24:00.000000000 +0200
 +++ fido2-0.3.0/test/test_ctap1.py	2018-05-20 21:12:03.176881487 +0200
 @@ -31,7 +31,10 @@ from fido2.ctap1 import CTAP1, ApduError
- from fido2.ctap1 import CTAP1, ApduError
+ from fido2.ctap1 import Ctap1, ApduError
  from binascii import a2b_hex
  import unittest
 -import mock
@@ -26,7 +26,7 @@
 +    from unittest import mock
  
  
- class TestCTAP1(unittest.TestCase):
+ class TestCtap1(unittest.TestCase):
 --- fido2-0.3.0/test/test_ctap2.py.orig	2018-04-12 17:10:24.000000000 +0200
 +++ fido2-0.3.0/test/test_ctap2.py	2018-05-20 21:12:17.790214668 +0200
 @@ -37,7 +37,10 @@ from cryptography.hazmat.backends import
@@ -41,17 +41,3 @@
  
  _AAGUID = a2b_hex("F8A011F38C0A4D15800617111F9EDC7D")
  _INFO = a2b_hex(
---- fido2-0.3.0/test/test_hid.py.orig	2018-04-05 14:24:00.000000000 +0200
-+++ fido2-0.3.0/test/test_hid.py	2018-05-20 21:12:31.910214473 +0200
-@@ -30,7 +30,10 @@ from __future__ import absolute_import,
- from fido2.ctap import CtapError
- from fido2.hid import CtapHidDevice
- import unittest
--import mock
-+try:
-+    import mock
-+except:
-+    from unittest import mock
- 
- 
- class HidTest(unittest.TestCase):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-fido2.git/commitdiff/591dbe066ef6b65ec8bd571adbc306764b4f4c40



More information about the pld-cvs-commit mailing list