1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_6 python3_7 python3_8 )
9 DESCRIPTION="Low-level, data-driven core of boto 3."
10 HOMEPAGE="https://github.com/boto/botocore"
14 RESTRICT="!test? ( test )"
16 if [[ "${PV}" == "9999" ]]; then
17 EGIT_REPO_URI="https://github.com/boto/botocore"
20 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
21 KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
25 dev-python/six[${PYTHON_USEDEP}]
26 dev-python/docutils[${PYTHON_USEDEP}]
27 dev-python/jmespath[${PYTHON_USEDEP}]
28 dev-python/python-dateutil[${PYTHON_USEDEP}]
29 dev-python/urllib3[${PYTHON_USEDEP}]
34 dev-python/mock[${PYTHON_USEDEP}]
35 dev-python/nose[${PYTHON_USEDEP}]
36 dev-python/jsonschema[${PYTHON_USEDEP}]
41 "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
42 "${FILESDIR}/botocore-1.16.7-unlock-deps.patch"
45 distutils_enable_sphinx docs \
46 'dev-python/guzzle_sphinx_theme'
48 python_compile_all() {
49 # remove version locked deps
50 sed -r -e 's:([a-zA-Z0-9_-]+)[><|=].*:\1:' \
51 -i requirements.txt || die
55 PYTHONPATH="${BUILD_DIR}/lib" nosetests -v tests/unit || die "unit tests failed under ${EPYTHON}"
56 PYTHONPATH="${BUILD_DIR}/lib" nosetests -v tests/functional || die "functional tests failed under ${EPYTHON}"