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 )
9 DESCRIPTION="A high-level Python library that makes it easier to use Apache Zookeeper"
10 HOMEPAGE="https://kazoo.readthedocs.org/ https://github.com/python-zk/kazoo/ https://pypi.org/project/kazoo/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="amd64 ~arm64 x86"
16 IUSE="doc gevent test"
19 dev-python/six[${PYTHON_USEDEP}]
20 gevent? ( dev-python/gevent[$(python_gen_usedep 'python2*')] )
23 dev-python/setuptools[${PYTHON_USEDEP}]
24 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
25 test? ( dev-python/mock[${PYTHON_USEDEP}] )
28 # not all test deps are in the tree
31 python_compile_all() {
32 use doc && { sphinx-build -b html docs docs/_build/html || die; }
39 python_install_all() {
40 use doc && local HTML_DOCS=( docs/_build/html/. )
41 local DOCS=( {CHANGES,CONTRIBUTING,README}.rst )
42 distutils-r1_python_install_all