2020-01-05 20:54:22 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2017-05-02 02:10:51 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2019-05-17 12:29:57 +03:00
|
|
|
EAPI=7
|
2020-01-05 20:54:22 +03:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_6,3_7} )
|
2017-05-02 02:10:51 +03:00
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="python-requests HTTP exchanges recorder"
|
|
|
|
HOMEPAGE="https://github.com/sigmavirus24/betamax"
|
|
|
|
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
2019-01-13 12:15:37 +03:00
|
|
|
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
|
2017-05-02 02:10:51 +03:00
|
|
|
IUSE="test"
|
|
|
|
|
|
|
|
RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
|
|
test? (
|
|
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
|
|
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
|
|
|
|
)"
|
|
|
|
|
|
|
|
# Tests require Internet access
|
|
|
|
RESTRICT=test
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
py.test -v || die "Tests fail with ${EPYTHON}"
|
|
|
|
}
|