diff --git a/kwsyntax.patch b/kwsyntax.patch new file mode 100644 index 0000000..e1ba1c2 --- /dev/null +++ b/kwsyntax.patch @@ -0,0 +1,13 @@ +Index: mocket-3.9.42/mocket/mocket.py +=================================================================== +--- mocket-3.9.42.orig/mocket/mocket.py ++++ mocket-3.9.42/mocket/mocket.py +@@ -628,7 +628,7 @@ class Mocketizer(object): + t(*args, **kw) + return wrapper + +- return decorator.decorator(wrapper, test) ++ return decorator.decorator(wrapper, test, kwsyntax=True) + + + mocketize = Mocketizer.wrap diff --git a/python-mocket.changes b/python-mocket.changes index dd0e454..df61448 100644 --- a/python-mocket.changes +++ b/python-mocket.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 5 15:22:22 UTC 2021 - Markéta Machová + +- Add kwsyntax.patch to fix test failure with new decorator. + ------------------------------------------------------------------- Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner diff --git a/python-mocket.spec b/python-mocket.spec index ba1700d..fad8d4a 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -32,10 +32,11 @@ Summary: Python socket mock framework License: BSD-3-Clause URL: https://github.com/mindflayer/python-mocket Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz +Patch0: kwsyntax.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-decorator < 5 +Requires: python-decorator Requires: python-http-parser >= 0.9.0 Requires: python-python-magic Requires: python-six @@ -80,6 +81,7 @@ included, with gevent/asyncio/SSL support. %prep %setup -q -n mocket-%{version} +%autopatch -p1 sed -i '/cov/ d' setup.cfg sed -i '/pipenv/ d' setup.py sed -i 's/==.*$//' requirements.txt