Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2017 Gentoo Foundation |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=6 |
5 |
PYTHON_COMPAT=( python2_7 python3_4 python3_5 ) |
6 |
|
7 |
inherit distutils-r1 |
8 |
|
9 |
DESCRIPTION="Low-level, data-driven core of boto 3." |
10 |
HOMEPAGE="https://github.com/boto/botocore" |
11 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
12 |
|
13 |
LICENSE="Apache-2.0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64" |
16 |
IUSE="doc test" |
17 |
|
18 |
CDEPEND=" |
19 |
>=dev-python/docutils-0.10[${PYTHON_USEDEP}] |
20 |
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] |
21 |
<dev-python/jmespath-1.0.0[${PYTHON_USEDEP}] |
22 |
>=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}] |
23 |
<dev-python/python-dateutil-3.0.0[${PYTHON_USEDEP}] |
24 |
" |
25 |
DEPEND=" |
26 |
dev-python/setuptools[${PYTHON_USEDEP}] |
27 |
doc? ( |
28 |
>=dev-python/guzzle_sphinx_theme-0.7.10[${PYTHON_USEDEP}] |
29 |
<dev-python/guzzle_sphinx_theme-0.8[${PYTHON_USEDEP}] |
30 |
>=dev-python/sphinx-1.1.3[${PYTHON_USEDEP}] |
31 |
<dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
32 |
) |
33 |
test? ( |
34 |
${CDEPEND} |
35 |
~dev-python/mock-1.3.0[${PYTHON_USEDEP}] |
36 |
dev-python/nose[${PYTHON_USEDEP}] |
37 |
) |
38 |
" |
39 |
RDEPEND="${CDEPEND}" |
40 |
|
41 |
python_compile_all() { |
42 |
use doc && emake -C docs html |
43 |
} |
44 |
|
45 |
python_test() { |
46 |
nosetests tests/unit || die "tests failed under ${EPYTHON}" |
47 |
} |
48 |
|
49 |
python_install_all() { |
50 |
use doc && local HTML_DOCS=( docs/build/html/. ) |
51 |
|
52 |
distutils-r1_python_install_all |
53 |
} |