summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/botocore')
-rw-r--r--dev-python/botocore/Manifest1
-rw-r--r--dev-python/botocore/botocore-1.19.7.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
index 330aa71a7116..5167c714b132 100644
--- a/dev-python/botocore/Manifest
+++ b/dev-python/botocore/Manifest
@@ -8,3 +8,4 @@ DIST botocore-1.19.3.tar.gz 6950797 BLAKE2B f8f97e699e9b31cf56d8a35ff75831e9c545
DIST botocore-1.19.4.tar.gz 6952148 BLAKE2B 96865c9d3a7d1429a6894a7cc06ed755d1f8ae5048ac32474bd1e8aeca210cbe5bdcd036d08883d95064f092c5123e774f2dc27f491baaaea867210702dfc11c SHA512 486280528c45937a20f6202bcde8f039d163dc612aeee6cb1bff177fa7ceb38c1143d421f29fc66cc9ac450a554bf843b5799607d16775a517853a62b77bb450
DIST botocore-1.19.5.tar.gz 6962056 BLAKE2B 261be573224ec07930f4f833193bae78d5bcdbeef37aededded7fee5717a595d52f7ef63d6e866a69f2d36d55cc0e8b81f962f2b9b6834867820a60acf454b14 SHA512 bb8d248d2d1e7753f67bedb57526d563b217799b70b9382fa908ab91e889fceffbf7fc4ca150a7e2740a3034cbfecaf0026cb5dcac1a38786bda97c3209feca4
DIST botocore-1.19.6.tar.gz 6963086 BLAKE2B d9805f95f6bdb5ef85eb474c270b4c37f6150a281c542e64938a1b9ceaed8faa03464a69ca45988eed85f61fc70aef41548dda8112e0d1cf71cc67fb33a6ab47 SHA512 da8c9c00417fa41f8f991babe15ac09dd8dad871548e53d5fe0560a8cffa478fbad0d2ded03fb3e693dbb83076fc578db5217ec9a419ac2c71bf04a4fefd68f1
+DIST botocore-1.19.7.tar.gz 6966051 BLAKE2B 1693452d50da92134da7e76011ebd7e55bed5aa4b240a886021ab8b517b88ff92424acdf7acf341f186bdb7d3ceb2dd9d04265d98469c1d8f2f99569a4f3a891 SHA512 cce829a8704e8b27f20d14ac84b0a93bbceddf542abc1750361e36b03d2a924b1f8922fdd82e0ee5ebecc98ff38feaa45255061b0f927049dfeb27cc6d8c5a9f
diff --git a/dev-python/botocore/botocore-1.19.7.ebuild b/dev-python/botocore/botocore-1.19.7.ebuild
new file mode 100644
index 000000000000..ca40b64d111f
--- /dev/null
+++ b/dev-python/botocore/botocore-1.19.7.ebuild
@@ -0,0 +1,59 @@
+# 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="Low-level, data-driven core of boto 3"
+HOMEPAGE="https://github.com/boto/botocore"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+if [[ "${PV}" == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/boto/botocore"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+fi
+
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/jmespath[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/jsonschema[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
+)
+
+distutils_enable_sphinx docs/source \
+ 'dev-python/guzzle_sphinx_theme'
+distutils_enable_tests nose
+
+src_prepare() {
+ # unpin deps
+ sed -i -e "s:>=.*':':" setup.py || die
+ # very unstable
+ sed -i -e 's:test_stress_test_token_bucket:_&:' \
+ tests/functional/retries/test_bucket.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ # note: suites need to be run separately as one of the unit tests
+ # seems to be leaking mocks and breaking a few functional tests
+ nosetests -v tests/unit ||
+ die "unit tests failed under ${EPYTHON}"
+ nosetests -v tests/functional ||
+ die "functional tests failed under ${EPYTHON}"
+}