diff --git a/python-PyNaCl-hypothesis-remove-average_size.patch b/python-PyNaCl-hypothesis-remove-average_size.patch new file mode 100644 index 0000000..c5635d4 --- /dev/null +++ b/python-PyNaCl-hypothesis-remove-average_size.patch @@ -0,0 +1,21 @@ +iff --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.changes b/python-PyNaCl.changes index 0506fac..c26d581 100644 --- a/python-PyNaCl.changes +++ b/python-PyNaCl.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jun 3 14:17:29 UTC 2019 - pgajdos@suse.com + +- run the testsuite +- added patches + https://github.com/pyca/pynacl/commit/a8c08b18f3a2e8f2140c531afaf42715fcab68e7 + + python-PyNaCl-hypothesis-remove-average_size.patch + ------------------------------------------------------------------- Wed Dec 12 13:05:57 UTC 2018 - Antonio Larrosa diff --git a/python-PyNaCl.spec b/python-PyNaCl.spec index d685508..121d412 100644 --- a/python-PyNaCl.spec +++ b/python-PyNaCl.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyNaCl # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,11 +25,17 @@ License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/pyca/pynacl/ Source: https://pypi.org/packages/source/P/PyNaCl/PyNaCl-%{version}.tar.gz +# https://github.com/pyca/pynacl/commit/a8c08b18f3a2e8f2140c531afaf42715fcab68e7 +Patch0: python-PyNaCl-hypothesis-remove-average_size.patch BuildRequires: %{python_module base} BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} BuildRequires: %{python_module pycparser} BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module hypothesis >= 3.27.0} +BuildRequires: %{python_module pytest >= 3.2.1} +# /SECTION BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros @@ -44,6 +50,7 @@ speed. %prep %setup -q -n PyNaCl-%{version} +%patch0 -p1 rm -Rf src/libsodium %build @@ -54,6 +61,9 @@ export SODIUM_INSTALL="system" %python_install %python_expand %fdupes %{buildroot}/%{$python_sitearch} +%check +%pytest_arch -v + %files %{python_files} %license LICENSE %doc README.rst