forked from pool/python-mocket
Accepting request 977787 from home:pgajdos:python
- do not require python-mock for build - added patches fix https://github.com/mindflayer/python-mocket/issues/178 + python-mocket-no-mock.patch OBS-URL: https://build.opensuse.org/request/show/977787 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=47
This commit is contained in:
committed by
Git OBS Bridge
parent
48cacb46bf
commit
86c0462991
@@ -35,6 +35,8 @@ URL: https://github.com/mindflayer/python-mocket
|
||||
Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE recording-urllib3-brotli.patch -- our urllib has different default headers than upstreams test reference, code@bnavigator.de
|
||||
Patch0: recording-urllib3-brotli.patch
|
||||
# https://github.com/mindflayer/python-mocket/issues/178
|
||||
Patch1: python-mocket-no-mock.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -57,7 +59,6 @@ BuildRequires: %{python_module cryptography}
|
||||
BuildRequires: %{python_module decorator}
|
||||
BuildRequires: %{python_module gevent}
|
||||
BuildRequires: %{python_module http-parser >= 0.9.0}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pook}
|
||||
BuildRequires: %{python_module pyOpenSSL}
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -83,6 +84,7 @@ sed -i '/pipenv/ d' setup.py
|
||||
# urllib3 in TW accepts Brotli encoding by default
|
||||
%patch0 -p1
|
||||
%endif
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%if !%{with test}
|
||||
|
Reference in New Issue
Block a user