New package: python-backports-ssl-match-hostname-3.4.0.2

Backport of the ssl.match_hostname() function from Python3.
This commit is contained in:
Alessio Sergi 2014-07-07 10:12:48 +02:00
parent 33f6d3d0f1
commit fb61a19a67

View file

@ -0,0 +1,25 @@
# Template file for 'python-backports-ssl-match-hostname'
pkgname=python-backports-ssl-match-hostname
version=3.4.0.2
revision=1
noarch=yes
wrksrc="backports.ssl_match_hostname-${version}"
build_style="python-module"
hostmakedepends="python-setuptools"
makedepends="python-devel"
depends="python"
pycompile_module="backports"
short_desc="The ssl.match_hostname() function from Python3"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://bitbucket.org/brandon/backports.ssl_match_hostname"
license="PSF"
distfiles="https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-${version}.tar.gz"
checksum=07410e7fb09aab7bdaf5e618de66c3dac84e2e3d628352814dc4c37de321d6ae
post_install() {
local python_sitelib="${DESTDIR}/usr/lib/python2.7/site-packages"
local wrksrc_ssl="${wrksrc}/src/backports/ssl_match_hostname"
rm -f ${python_sitelib}/backports/ssl_match_hostname/{LICENSE.txt,README.txt}
vdoc ${wrksrc_ssl}/README.txt README
vlicense ${wrksrc_ssl}/LICENSE.txt LICENSE
}