1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{3_6,3_7} )
9 DESCRIPTION="Ultra-fast implementation of asyncio event loop on top of libuv"
10 HOMEPAGE="https://github.com/magicstack/uvloop"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
16 IUSE="doc examples test"
17 RESTRICT="!test? ( test )"
19 RDEPEND=">=dev-libs/libuv-1.11.0:="
22 dev-python/setuptools[${PYTHON_USEDEP}]
24 >=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}]
25 dev-python/sphinx[${PYTHON_USEDEP}]
27 test? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
30 python_prepare_all() {
31 cat <<EOF >> setup.cfg || die
37 rm tests/test_sourcecode.py || die
39 distutils-r1_python_prepare_all
42 python_compile_all() {
43 use doc && esetup.py build_ext --inplace build_sphinx
50 python_install_all() {
51 use examples && dodoc -r examples
52 use doc && local HTML_DOCS=( "${BUILD_DIR}/sphinx/html/." )
53 distutils-r1_python_install_all