License: Apache v2.0
Group: Development/Languages/Python
#Source0Download: https://pypi.org/simple/requests/
Source0: https://files.pythonhosted.org/packages/source/r/requests/%{module}-%{version}.tar.gz
License: Apache v2.0
Group: Development/Languages/Python
#Source0Download: https://pypi.org/simple/requests/
Source0: https://files.pythonhosted.org/packages/source/r/requests/%{module}-%{version}.tar.gz
BuildRequires: python-PySocks >= 1.5.8
BuildRequires: python-certifi >= 2017.4.17
BuildRequires: python-chardet >= 3.0.2
BuildRequires: python-PySocks >= 1.5.8
BuildRequires: python-certifi >= 2017.4.17
BuildRequires: python-chardet >= 3.0.2
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-PySocks >= 1.5.8
BuildRequires: python3-certifi >= 2017.4.17
BuildRequires: python3-chardet >= 3.0.2
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-PySocks >= 1.5.8
BuildRequires: python3-certifi >= 2017.4.17
BuildRequires: python3-chardet >= 3.0.2
Summary: HTTP library for Python 3
Summary(pl.UTF-8): Biblioteka HTTP dla Pythona 3
Group: Development/Languages/Python
Summary: HTTP library for Python 3
Summary(pl.UTF-8): Biblioteka HTTP dla Pythona 3
Group: Development/Languages/Python
Requires: python3-pyOpenSSL >= 0.14
Requires: python3-urllib3 >= 1.22-2
Suggests: ca-certificates
Requires: python3-pyOpenSSL >= 0.14
Requires: python3-urllib3 >= 1.22-2
Suggests: ca-certificates
-%py_build %{?with_tests:test}
+%py_build
+
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_httpbin.plugin,pytest_mock" \
+%{__python} -m pytest tests
-%py3_build %{?with_tests:test}
+%py3_build
+
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_httpbin.plugin,pytest_mock" \
+%{__python3} -m pytest tests