1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
9 DESCRIPTION="A utility belt for advanced users of python-requests"
10 HOMEPAGE="https://toolbelt.readthedocs.org/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc64 ~sparc x86"
18 RDEPEND="<dev-python/requests-3.0.0[${PYTHON_USEDEP}]"
20 dev-python/setuptools[${PYTHON_USEDEP}]
22 dev-python/betamax[${PYTHON_USEDEP}]
23 dev-python/mock[${PYTHON_USEDEP}]
26 DOCS=( AUTHORS.rst HISTORY.rst README.rst )
29 "${FILESDIR}/requests-toolbelt-0.8.0-test-tracebacks.patch"
30 "${FILESDIR}/requests-toolbelt-0.9.1-tests.patch"
32 # disable python2.7 test failures with newer requests versions
33 # bug: https://bugs.gentoo.org/635824
34 # https://github.com/requests/toolbelt/issues/213
35 "${FILESDIR}/requests-toolbelt-0.9.1-tests-py2.patch"
37 # disable tests that require internet access
38 "${FILESDIR}/requests-toolbelt-0.9.1-tests-internet.patch"
41 distutils_enable_tests pytest