summaryrefslogtreecommitdiff
path: root/dev-python/vcrpy
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/vcrpy')
-rw-r--r--dev-python/vcrpy/Manifest4
-rw-r--r--dev-python/vcrpy/vcrpy-4.0.2.ebuild2
-rw-r--r--dev-python/vcrpy/vcrpy-4.1.0.ebuild50
3 files changed, 54 insertions, 2 deletions
diff --git a/dev-python/vcrpy/Manifest b/dev-python/vcrpy/Manifest
index f2b2f8af4597..ce7bd592bf49 100644
--- a/dev-python/vcrpy/Manifest
+++ b/dev-python/vcrpy/Manifest
@@ -1,3 +1,5 @@
DIST vcrpy-4.0.2.tar.gz 324196 BLAKE2B 8910ba40bd56c7836a92c120c480e633063c78beb1d7c4dcfffb6180135cf0e28586410307ba3e19b3fa484a72a176dbf877f781ade7bae7c81110fde2eedd32 SHA512 17eebc9574ff14f97ad200b99c50b0440a93fbf38afe8ad95f443370d84c43177ac55ab655ffea7e7985b0cd76124eff3c394898e71a0ba0c434014f07e526f9
-EBUILD vcrpy-4.0.2.ebuild 1391 BLAKE2B 8fcf248c6fa4327cdd77626cffebbfb384d202ab8ffd1d54346261d3554e4f7656972b25f8ea9fd3ab8f262193f368568ebf2977018788202aa552a5db2066c8 SHA512 0d10b4142f02427511ec76c3441a4027094bd375d96aaf1024e1865b6d34e47484d7ac05af09c427120ab8c78494ac7202def995257fa4a3e81c34833f563eae
+DIST vcrpy-4.1.0.tar.gz 330122 BLAKE2B a7a2516d4dfcc01da801fb8685ea3b56f50ce474d35477ae36785ea1bfbae113bd3c18fb3faadb13fc81c37fa1d282a84bc60fdd27f4fc4a1f3e952312d7bc5f SHA512 7ad5517cd52f6f31448db9b608d8a7b274741727487ede21b7f80e4060e3ddbb34c731166f67ae7136c86a8d3e7fd23128e035a148f18f771066bfa71319624f
+EBUILD vcrpy-4.0.2.ebuild 1389 BLAKE2B 84a6c873cb48a40c6f7b7e133863d58bef6ae00edca2faa3a9739bccdbf141f5f45aa413170508abb27fd70a039685eeab9dd0abe6b51e622fca5bc8ed1eb78d SHA512 2f56198bb62bc2844b37e99dcbdf2ec909188ec16db101ffde5f03fe799aca29f7b73262d347f38521fb3859a1bc618f1da813e344e9d2909fe93a495053481d
+EBUILD vcrpy-4.1.0.ebuild 1393 BLAKE2B a6470456c465894972edffdce4e89823153dee2cbb7d8bc033cc4536ae95ff169c24f140290f3a0c1b8d82565809c5208af61675b0340a844fffdaf926c0fd3f SHA512 09704e8002f65ad1bee470f333fd3a2e995dd0d90b97b62d24f2b51ac3fa9818565ae47e28f6c335b5fc4f3ae250b3367a1394110f5c5b79fcd95b3426167fb1
MISC metadata.xml 363 BLAKE2B e447766d191bb1c155e27a7b892fd38df143e2bb0f45be8b635df6bcef92f6f292db010b22659d0e699f3f333f84d0be24d3c9a293e1a2f00f641e21a356daa3 SHA512 7cb4c7132da46b1a34425492476204519a02b71643cdb6dffbda39281ada4a55b45577707076783add52639ff5993f0c90c48713b94ca1230eb3559ad1207804
diff --git a/dev-python/vcrpy/vcrpy-4.0.2.ebuild b/dev-python/vcrpy/vcrpy-4.0.2.ebuild
index b538d90a9181..d2d8fd9f9217 100644
--- a/dev-python/vcrpy/vcrpy-4.0.2.ebuild
+++ b/dev-python/vcrpy/vcrpy-4.0.2.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/kevin1024/vcrpy/archive/v${PV}.tar.gz -> ${P}.tar.gz
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc x86"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc x86"
RDEPEND="
>=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
diff --git a/dev-python/vcrpy/vcrpy-4.1.0.ebuild b/dev-python/vcrpy/vcrpy-4.1.0.ebuild
new file mode 100644
index 000000000000..75f411685298
--- /dev/null
+++ b/dev-python/vcrpy/vcrpy-4.1.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Automatically mock your HTTP interactions to simplify and speed up testing"
+HOMEPAGE="https://github.com/kevin1024/vcrpy"
+#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="https://github.com/kevin1024/vcrpy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+RDEPEND="
+ >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ >=dev-python/six-1.5[${PYTHON_USEDEP}]
+ dev-python/urllib3[${PYTHON_USEDEP}]
+ dev-python/wrapt[${PYTHON_USEDEP}]
+ dev-python/yarl[${PYTHON_USEDEP}]
+ "
+BDEPEND="
+ test? (
+ dev-python/pytest-httpbin[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # tests requiring Internet
+ rm tests/integration/test_aiohttp.py || die
+ sed -e 's:test_flickr_should_respond_with_200:_&:' \
+ -e 's:test_amazon_doctype:_&:' \
+ -i tests/integration/test_wild.py || die
+ sed -e 's:testing_connect:_&:' \
+ -i tests/unit/test_stubs.py || die
+
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local -x REQUESTS_CA_BUNDLE=$("${EPYTHON}" -m pytest_httpbin.certs)
+ pytest -vv || die "Tests fail with ${EPYTHON}"
+}