dev-python/betamax: New package, needed for requests-toolbelt tests

This commit is contained in:
Michał Górny
2017-05-01 16:24:29 +02:00
parent a4b3497010
commit c7373c5a47
3 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST betamax-0.8.0.tar.gz 78398 SHA256 82c480852a70a1bb57bd3f505107ffc293185e26fdaf45e538478e675fd9c8a1 SHA512 52b330747b6add52390b50dd63c05851adc01ccd238fdb5c3401efdfc26be363a3f61145dc0e1f3cc43ff520e1457e33fa47952d2929c7c3e12c3e2612621f95 WHIRLPOOL 70b69ad2df7e01b6bdf4cde60c18a723a95b24805f07c790cefa4e462d59c24d3c63a184e9021eefc1572496ec4d218a92ab467f0d953aaf982ea78f025f6806

View File

@@ -0,0 +1,31 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
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"
KEYWORDS="~amd64 ~x86"
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}"
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
</maintainer>
</pkgmetadata>