forked from pool/python-geventhttpclient
- Add remove_mock.patch to remove dependency on the external mock package (gh#gwik/geventhttpclient#135). OBS-URL: https://build.opensuse.org/request/show/855336 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geventhttpclient?expand=0&rev=10
76 lines
2.5 KiB
RPMSpec
76 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-geventhttpclient
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-geventhttpclient
|
|
Version: 1.4.4
|
|
Release: 0
|
|
Summary: HTTP client library for gevent
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/gwik/geventhttpclient
|
|
Source: https://files.pythonhosted.org/packages/source/g/geventhttpclient/geventhttpclient-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM remove_mock.patch gh#gwik/geventhttpclient#135 mcepl@suse.com
|
|
# remove dependency on the external module mock
|
|
Patch0: remove_mock.patch
|
|
BuildRequires: %{python_module certifi}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module dpkt}
|
|
BuildRequires: %{python_module gevent}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-certifi
|
|
Requires: python-gevent
|
|
Requires: python-six
|
|
%python_subpackages
|
|
|
|
%description
|
|
A concurrent HTTP client library for Python using gevent.
|
|
|
|
geventhttpclient uses a HTTP parser, written in C, originating from
|
|
nginx, extracted and modified by Joyent.
|
|
|
|
geventhttpclient has been designed for high concurrency and
|
|
streaming, and supports HTTP/1.1 persistent connections. More
|
|
generally, it is designed for pulling from REST APIs and streaming
|
|
APIs like Twitter's.
|
|
|
|
%prep
|
|
%autosetup -p1 -n geventhttpclient-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
# test_cookielib_compatibility https://github.com/gwik/geventhttpclient/issues/119
|
|
%pytest_arch -m 'not online' -k 'not test_cookielib_compatibility'
|
|
|
|
%files %{python_files}
|
|
%doc README.mdown
|
|
%license LICENSE-MIT
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|