tdev-python/tlslite: Add 0.4.9 - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- DIR commit 406b27c0aad7c1b2afc375827984ea884f13a001 DIR parent b0600ca8a4cf41b214798c82439e39effcbfe9d9 HTML Author: parazyd <parazyd@dyne.org> Date: Mon, 13 Nov 2017 22:26:19 +0100 dev-python/tlslite: Add 0.4.9 Diffstat: A dev-python/tlslite/Manifest | 1 + A dev-python/tlslite/metadata.xml | 21 +++++++++++++++++++++ A dev-python/tlslite/tlslite-0.4.9-r… | 34 +++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 0 deletions(-) --- DIR diff --git a/dev-python/tlslite/Manifest b/dev-python/tlslite/Manifest t@@ -0,0 +1 @@ +DIST tlslite-0.4.9.tar.gz 105402 SHA256 9b9a487694c239efea8cec4454a99a56ee1ae1a5f3af0858ccf8029e2ac2d42d SHA512 5473139b5730ef946efa139fbb9adb3333dc67f33f03305f4a6d3b6eaaefce950ba93bc1053362fc31b9d68ff9f6deceb9449987e29ff44035b818d7310edbea WHIRLPOOL b8fa4794d5670585c9f55673f04bfb2d2fac5457013284b810d27e4c31f0f9a9a349f1664eec338bc70adf9586910bccf3c33ef6d0b926418e1801ef23e6cd7b DIR diff --git a/dev-python/tlslite/metadata.xml b/dev-python/tlslite/metadata.xml t@@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + TLS Lite is a free python library that implements SSL 3.0, TLS 1.0, and + TLS 1.1. TLS Lite supports non-traditional authentication methods such + as SRP, shared keys, and cryptoIDs in addition to X.509 certificates. + TLS Lite is pure Python, however it can access OpenSSL, cryptlib, + pycrypto, and GMPY for faster crypto operations. TLS Lite integrates + with httplib, xmlrpclib, poplib, imaplib, smtplib, SocketServer, + asyncore, and Twisted. + </longdescription> + <upstream> + <remote-id type="github">trevp/tlslite</remote-id> + <remote-id type="pypi">tlslite</remote-id> + </upstream> +</pkgmetadata> DIR diff --git a/dev-python/tlslite/tlslite-0.4.9-r2.ebuild b/dev-python/tlslite/tlslite-0.4.9-r2.ebuild t@@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +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 ppc x86" +#Refrain for now setting IUSE test and deps of test given test restricted. +IUSE="" + +DEPEND="" +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 +} + +pkg_postinst() { + optfeature "GMP support" dev-python/gmpy +}