diff options
-rw-r--r-- | dev-python/kazoo/Manifest | 1 | ||||
-rw-r--r-- | dev-python/kazoo/kazoo-2.7.0.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/kazoo/Manifest b/dev-python/kazoo/Manifest index 924a403235f9..656228deeab4 100644 --- a/dev-python/kazoo/Manifest +++ b/dev-python/kazoo/Manifest @@ -1 +1,2 @@ DIST kazoo-2.6.1.tar.gz 157425 BLAKE2B af05ee5fb1d532ebc3352de004062f1ff976825f564212f2db76efc153566106ffa520745a8e8cc6a78ca2bf0d17556f978a6b462e4153e9b3ee5258e78a1d82 SHA512 613e8271bfd6c8f5ee976b6ee460478c7faad46b32995125a64312208b38755888690cd46b913ff44ba52aeb36de3ec3dd8e222985af77e99f43963a3eb48d48 +DIST kazoo-2.7.0.tar.gz 163552 BLAKE2B d117ef62b324d074afae5d17f12e2740ab26076ce8e9ea5b0ec15400d2a57ac89053c92675c7e82f1b54e33d30d6029765ec29a72ad537b5d5cfdca976803b5b SHA512 04c3acef723ce306537114ed0f67e96d6c4c638d5dad12e38fcbf1b4dc3e7a972ca0c950adfbbbec7deb8da910e03e867e26ccb83d39eb1381daf0cb5dd2ac6b diff --git a/dev-python/kazoo/kazoo-2.7.0.ebuild b/dev-python/kazoo/kazoo-2.7.0.ebuild new file mode 100644 index 000000000000..5dc5703f6694 --- /dev/null +++ b/dev-python/kazoo/kazoo-2.7.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_6 python3_7 python3_8 ) + +inherit distutils-r1 + +DESCRIPTION="A high-level Python library that makes it easier to use Apache Zookeeper" +HOMEPAGE="https://kazoo.readthedocs.org/ https://github.com/python-zk/kazoo/ https://pypi.org/project/kazoo/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc test" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/graphviz[${PYTHON_USEDEP}] + >=dev-python/objgraph-3.4.0[${PYTHON_USEDEP}] + ) +" + +# requires zookeeper running to test +RESTRICT="test" + +python_compile_all() { + if use doc; then + sphinx-build -b html docs docs/_build/html || die + fi +} + +python_test() { + ZOOKEEPER_VERSION="2.6.1" esetup.py test || die +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + local DOCS=( {CHANGES,CONTRIBUTING,README}.md ) + distutils-r1_python_install_all +} |