From 36c1895f2971ccb8ff79c9d28ed74c7aa57cbe57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 3 May 2019 01:50:30 +0200 Subject: [PATCH] hypothesis 4 support (#1704924) --- 480.patch | 29 +++++++++++++++++++++++++++++ python-pynacl.spec | 5 ++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 480.patch diff --git a/480.patch b/480.patch new file mode 100644 index 0000000..9b7a5a9 --- /dev/null +++ b/480.patch @@ -0,0 +1,29 @@ +From af2d8c241872318baba42d7f5fbfb1869de91baa Mon Sep 17 00:00:00 2001 +From: Valentin Heidelberger +Date: Thu, 27 Sep 2018 22:36:34 +0200 +Subject: [PATCH] Remove average_size hypothesis setting from test_bindings.py + +--- + tests/test_bindings.py | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/tests/test_bindings.py b/tests/test_bindings.py +index 22930cc7..d7951a21 100644 +--- a/tests/test_bindings.py ++++ b/tests/test_bindings.py +@@ -306,7 +306,6 @@ def test_unpad_not_padded(): + + + @given(binary(min_size=0, +- average_size=128, + max_size=2049), + integers(min_value=16, + max_value=256) +@@ -320,7 +319,6 @@ def test_pad_sizes(msg, bl_sz): + + + @given(binary(min_size=0, +- average_size=128, + max_size=2049), + integers(min_value=16, + max_value=256) diff --git a/python-pynacl.spec b/python-pynacl.spec index bac4c95..1c68a8f 100644 --- a/python-pynacl.spec +++ b/python-pynacl.spec @@ -12,6 +12,9 @@ License: ASL 2.0 URL: https://github.com/pyca/pynacl Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz +# hypothesis 4 support +Patch1: %{url}/pull/480.patch + BuildRequires: gcc BuildRequires: libsodium-devel @@ -55,7 +58,7 @@ BuildRequires: python3-hypothesis >= 3.27.0 Python 3 version. %prep -%autosetup -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version} # Remove bundled libsodium, to be sure rm -vrf src/libsodium/