1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
9 DESCRIPTION="Python library for tor's pluggable transport managed-proxy protocol"
10 HOMEPAGE="https://gitweb.torproject.org/pluggable-transports/pyptlib.git"
11 SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~arm ~mips ~x86"
18 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
19 DOCS=( README.rst TODO )
22 "${PYTHON}" -m unittest discover || die "tests failed"
25 python_install_all() {
26 use doc && local HTML_DOCS=( doc/html/. )
27 use examples && local EXAMPLES=( examples/. )
28 distutils-r1_python_install_all