diff options
author | 2015-09-13 10:51:41 +0200 | |
---|---|---|
committer | 2015-09-13 10:52:14 +0200 | |
commit | 4d5c38ccfb21de66efb5987e5337cbbba5662bc9 (patch) | |
tree | a3bc43349aee77347cbb60515dcbd4e229eba73b /dev-python/tlslite/tlslite-0.4.8.ebuild | |
parent | net-p2p/gtk-gnutella: version bump (diff) | |
download | gentoo-4d5c38ccfb21de66efb5987e5337cbbba5662bc9.tar.gz gentoo-4d5c38ccfb21de66efb5987e5337cbbba5662bc9.tar.bz2 gentoo-4d5c38ccfb21de66efb5987e5337cbbba5662bc9.zip |
dev-python/tlslite: Version Bump
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=560278
Package-Manager: portage-2.2.20.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/tlslite/tlslite-0.4.8.ebuild')
-rw-r--r-- | dev-python/tlslite/tlslite-0.4.8.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/tlslite/tlslite-0.4.8.ebuild b/dev-python/tlslite/tlslite-0.4.8.ebuild new file mode 100644 index 000000000000..ec5c39495a61 --- /dev/null +++ b/dev-python/tlslite/tlslite-0.4.8.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils + +DESCRIPTION="TLS Lite is a free python library that implements SSL 3.0 and TLS 1.0/1.1" +HOMEPAGE="http://trevp.net/tlslite/ https://pypi.python.org/pypi/tlslite https://github.com/trevp/tlslite" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#Refrain for now setting IUSE test and deps of test given test restricted. +IUSE="doc" + +DEPEND=" + >=dev-libs/cryptlib-3.3.3[python,${PYTHON_USEDEP}] + || ( + dev-python/m2crypto[${PYTHON_USEDEP}] + dev-python/pycrypto[${PYTHON_USEDEP}] + )" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +# Tests still hang +python_test() { + cd tests || die + "${PYTHON}" "${S}"/tests/tlstest.py client localhost:4443 . || die + "${PYTHON}" "${S}"/tests/tlstest.py server localhost:4442 . || die +} + +python_install_all(){ + use doc && HTML_DOCS=( docs/. ) + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "GMP support" dev-python/gmpy +} |