diff --git a/python-hypothesis-build.patch b/python-hypothesis-build.patch new file mode 100644 index 0000000..b6c856d --- /dev/null +++ b/python-hypothesis-build.patch @@ -0,0 +1,10 @@ +diff -Pdpru hypothesis-python-3.42.2.orig/setup.py hypothesis-python-3.42.2/setup.py +--- hypothesis-python-3.42.2.orig/setup.py 2017-12-12 04:59:10.000000000 +0100 ++++ hypothesis-python-3.42.2/setup.py 2017-12-15 09:54:26.188604599 +0100 +@@ -95,5 +95,5 @@ setup( + entry_points={ + 'pytest11': ['hypothesispytest = hypothesis.extra.pytestplugin'], + }, +- long_description=open(README).read(), ++ long_description=open("README.rst").read(), + ) diff --git a/python-hypothesis.changes b/python-hypothesis.changes index e920de8..c76ce96 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Dec 15 08:55:52 UTC 2017 - ecsos@opensuse.org + +- Add patch python-hypothesis-build.patch + to fix Factory build error + ------------------------------------------------------------------- Thu Dec 14 15:00:24 UTC 2017 - tchvatal@suse.com diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 8d3575c..fcd317c 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -30,6 +30,7 @@ License: MPL-2.0 Group: Development/Languages/Python Url: https://github.com/HypothesisWorks/hypothesis-python Source: https://github.com/HypothesisWorks/hypothesis-python/archive/%{version}.tar.gz +Patch0: %{name}-build.patch BuildRequires: %{python_module Django >= 1.8} BuildRequires: %{python_module Faker >= 0.7.0} BuildRequires: %{python_module attrs} @@ -74,6 +75,7 @@ work on Jython or on Python 3.0 through 3.2. %setup -q -n hypothesis-python-%{version} # remove py2/3 and django tests as they fail rm -rf tests/py3 tests/py2 tests/django +%patch0 -p1 %build %python_build