1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_6 python3_7 )
7 inherit distutils-r1 vcs-snapshot
9 DESCRIPTION="The AWS SDK for Python"
10 HOMEPAGE="https://github.com/boto/boto3"
14 RESTRICT="!test? ( test )"
16 if [[ "${PV}" == "9999" ]]; then
17 EGIT_REPO_URI="https://github.com/boto/boto3"
20 SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
21 KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
25 >=dev-python/botocore-1.12.4[${PYTHON_USEDEP}]
26 dev-python/jmespath[${PYTHON_USEDEP}]
27 dev-python/s3transfer[${PYTHON_USEDEP}]
30 dev-python/setuptools[${PYTHON_USEDEP}]
32 dev-python/guzzle_sphinx_theme[${PYTHON_USEDEP}]
33 dev-python/sphinx[${PYTHON_USEDEP}]
37 dev-python/mock[${PYTHON_USEDEP}]
38 dev-python/nose[${PYTHON_USEDEP}]
42 python_compile_all() {
43 use doc && emake -C docs html
47 nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}"
50 python_install_all() {
51 use doc && local HTML_DOCS=( docs/build/html/. )
53 distutils-r1_python_install_all