1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/aiohttp/aiohttp-0.14.4-r1.ebuild,v 1.1 2015/03/16 11:08:45 bman Exp $
7 PYTHON_COMPAT=( python3_3 python3_4 )
11 DESCRIPTION="http client/server for asyncio"
12 HOMEPAGE="https://github.com/KeepSafe/aiohttp https://pypi.python.org/pypi/aiohttp"
13 SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
18 IUSE="doc examples test"
21 dev-python/chardet[${PYTHON_USEDEP}]
22 $(python_gen_cond_dep 'dev-python/asyncio[${PYTHON_USEDEP}]' 'python3_3')
23 $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' 'python3_3')
26 dev-python/setuptools[${PYTHON_USEDEP}]
27 dev-python/cython[${PYTHON_USEDEP}]
29 >=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}]
30 dev-python/sphinxcontrib-newsfeed[${PYTHON_USEDEP}]
31 dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
32 dev-python/sphinx[${PYTHON_USEDEP}]
36 dev-python/nose[${PYTHON_USEDEP}]
37 www-servers/gunicorn[${PYTHON_USEDEP}]
42 python_compile_all() {
43 use doc && emake -C docs html
47 PYTHONPATH="$(PWD):${PYTHONPATH}" nosetests tests/ || die "Tests failed under ${EPYTHON}"
50 python_install_all() {
51 use doc && local HTML_DOCS=( docs/_build/html/. )
52 use examples && local EXAMPLES=( examples/. )
54 distutils-r1_python_install_all