diff options
author | 2017-09-19 17:30:24 -0700 | |
---|---|---|
committer | 2017-09-20 13:02:43 -0700 | |
commit | 703510d0fe7f334a3f40009c50d93e74cb522c76 (patch) | |
tree | d9b0a9dc077d7a841fedef580e2e05a9f1db8c9c /dev-python/txtorcon/txtorcon-0.19.3.ebuild | |
parent | dev-python/autobahn: Version bump (diff) | |
download | gentoo-703510d0fe7f334a3f40009c50d93e74cb522c76.tar.gz gentoo-703510d0fe7f334a3f40009c50d93e74cb522c76.tar.bz2 gentoo-703510d0fe7f334a3f40009c50d93e74cb522c76.zip |
dev-python/txtorcon: New pkg, new dep of net-misc/crossbar-17.9.1
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-python/txtorcon/txtorcon-0.19.3.ebuild')
-rw-r--r-- | dev-python/txtorcon/txtorcon-0.19.3.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/txtorcon/txtorcon-0.19.3.ebuild b/dev-python/txtorcon/txtorcon-0.19.3.ebuild new file mode 100644 index 000000000000..5155d74c9df7 --- /dev/null +++ b/dev-python/txtorcon/txtorcon-0.19.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Twisted-based Tor controller client, with state-tracking and config abstractions" +HOMEPAGE="https://github.com/meejah/txtorcon https://pypi.python.org/pypi/txtorcon https://txtorcon.readthedocs.org" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples test" + +RDEPEND=" + dev-python/automat[${PYTHON_USEDEP}] + dev-python/incremental[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}]' python2_7) + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP},crypt] + >=dev-python/zope-interface-3.6.1[${PYTHON_USEDEP}] + doc? ( + dev-python/automat[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}]' python2_7) + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/repoze-sphinx-autointerface[${PYTHON_USEDEP}] + >=dev-python/zope-interface-3.6.1[${PYTHON_USEDEP}] + ) +" +DEPEND=" + ${RDEPEND} + test? ( dev-python/mock[${PYTHON_USEDEP}] ) +" + +PATCHES=( + "${FILESDIR}/txtorcon-0.19.3-setup.py-Dontinstallthetests.patch" + "${FILESDIR}/txtorcon-0.19.3-Movetestsunderthetxtorconnamespace.patch" + "${FILESDIR}/txtorcon-0.19.3-Removeunconditionalexamples.patch" + "${FILESDIR}/txtorcon-0.19.3-Removeinstalldocs.patch" +) + +python_test() { + pushd "${TEST_DIR}" > /dev/null || die + /usr/bin/trial txtorcon || die "Tests failed with ${EPYTHON}" + popd > /dev/null || die +} + +python_compile_all() { + use doc && emake -C "${S}/docs" html +} + +python_install_all() { + use doc && dohtml -r "${S}/docs/_build/html/"* + use examples && dodoc -r "${S}/examples/" + distutils-r1_python_install_all +} |