summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-05-01 16:24:29 +0200
committerMichał Górny <mgorny@gentoo.org>2017-05-01 16:56:17 +0200
commitc7373c5a4791f4cc99133b74c2abfa11f1bead32 (patch)
tree399bdfa0f13ab022ef5c7ae4b7c0ff605bc7e285 /dev-python/betamax
parentdev-python/atomicwrites: Enable tests (diff)
downloadgentoo-c7373c5a4791f4cc99133b74c2abfa11f1bead32.tar.gz
gentoo-c7373c5a4791f4cc99133b74c2abfa11f1bead32.tar.bz2
gentoo-c7373c5a4791f4cc99133b74c2abfa11f1bead32.zip
dev-python/betamax: New package, needed for requests-toolbelt tests
Diffstat (limited to 'dev-python/betamax')
-rw-r--r--dev-python/betamax/Manifest1
-rw-r--r--dev-python/betamax/betamax-0.8.0.ebuild31
-rw-r--r--dev-python/betamax/metadata.xml7
3 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/betamax/Manifest b/dev-python/betamax/Manifest
new file mode 100644
index 00000000000..dab5ed8ffec
--- /dev/null
+++ b/dev-python/betamax/Manifest
@@ -0,0 +1 @@
+DIST betamax-0.8.0.tar.gz 78398 SHA256 82c480852a70a1bb57bd3f505107ffc293185e26fdaf45e538478e675fd9c8a1 SHA512 52b330747b6add52390b50dd63c05851adc01ccd238fdb5c3401efdfc26be363a3f61145dc0e1f3cc43ff520e1457e33fa47952d2929c7c3e12c3e2612621f95 WHIRLPOOL 70b69ad2df7e01b6bdf4cde60c18a723a95b24805f07c790cefa4e462d59c24d3c63a184e9021eefc1572496ec4d218a92ab467f0d953aaf982ea78f025f6806
diff --git a/dev-python/betamax/betamax-0.8.0.ebuild b/dev-python/betamax/betamax-0.8.0.ebuild
new file mode 100644
index 00000000000..e39b5dd1f25
--- /dev/null
+++ b/dev-python/betamax/betamax-0.8.0.ebuild
@@ -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}"
+}
diff --git a/dev-python/betamax/metadata.xml b/dev-python/betamax/metadata.xml
new file mode 100644
index 00000000000..266e3f19ca5
--- /dev/null
+++ b/dev-python/betamax/metadata.xml
@@ -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>