1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_6 )
10 DESCRIPTION="Mock out responses from the requests package"
11 HOMEPAGE="https://github.com/jamielennox/requests-mock"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="amd64 ~arm64 x86"
18 RESTRICT="!test? ( test )"
21 dev-python/setuptools[${PYTHON_USEDEP}]
22 >=dev-python/pbr-0.8[${PYTHON_USEDEP}]
24 dev-python/fixtures[${PYTHON_USEDEP}]
25 dev-python/mock[${PYTHON_USEDEP}]
26 >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
27 dev-python/testtools[${PYTHON_USEDEP}]
31 >=dev-python/requests-1.1[${PYTHON_USEDEP}]
32 dev-python/six[${PYTHON_USEDEP}]
36 rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPYTHON}"
38 testr init || die "testr init failed under ${EPYTHON}"
39 testr run || die "testr run failed under ${EPYTHON}"