1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
9 inherit distutils-r1 eutils
11 DESCRIPTION="TLS Lite is a free python library that implements SSL 3.0 and TLS 1.0/1.1"
12 HOMEPAGE="http://trevp.net/tlslite/ https://pypi.python.org/pypi/tlslite https://github.com/trevp/tlslite"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 LICENSE="BSD public-domain"
17 KEYWORDS="~amd64 ~x86"
18 #Refrain for now setting IUSE test and deps of test given test restricted.
22 >=dev-libs/cryptlib-3.3.3[python,${PYTHON_USEDEP}]
24 dev-python/m2crypto[${PYTHON_USEDEP}]
25 dev-python/pycrypto[${PYTHON_USEDEP}]
34 "${PYTHON}" "${S}"/tests/tlstest.py client localhost:4443 . || die
35 "${PYTHON}" "${S}"/tests/tlstest.py server localhost:4442 . || die
39 use doc && HTML_DOCS=( docs/. )
40 distutils-r1_python_install_all
44 optfeature "GMP support" dev-python/gmpy