1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_4 )
8 inherit distutils-r1 vcs-snapshot
10 DESCRIPTION="The AWS SDK for Python"
11 HOMEPAGE="https://github.com/boto/boto3"
12 SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
20 >=dev-python/botocore-1.2.0[${PYTHON_USEDEP}]
21 <dev-python/botocore-1.3.0[${PYTHON_USEDEP}]
22 >=dev-python/jmespath-0.6.2[${PYTHON_USEDEP}]
23 <dev-python/jmespath-1.0.0[${PYTHON_USEDEP}]
24 $(python_gen_cond_dep '=dev-python/futures-2.2.0[${PYTHON_USEDEP}]' 'python2_7')
27 dev-python/setuptools[${PYTHON_USEDEP}]
29 >=dev-python/guzzle_sphinx_theme-0.7.10[${PYTHON_USEDEP}]
30 <dev-python/guzzle_sphinx_theme-0.8[${PYTHON_USEDEP}]
31 >=dev-python/sphinx-1.1.3[${PYTHON_USEDEP}]
32 <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
36 dev-python/mock[${PYTHON_USEDEP}]
37 dev-python/nose[${PYTHON_USEDEP}]
42 python_compile_all() {
43 use doc && emake -C docs html
47 nosetests 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