New package: python-backports.ssl_match_hostname-3.5.0.1

This commit is contained in:
Alessio Sergi 2016-04-24 22:25:55 +02:00
parent fec55a0570
commit 3c34a7db02
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,33 @@
# Template file for 'python-backports.ssl_match_hostname'
pkgname=python-backports.ssl_match_hostname
version=3.5.0.1
revision=1
noarch=yes
wrksrc="backports.ssl_match_hostname-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="backports"
hostmakedepends="python python3.4"
depends="python-backports"
short_desc="The ssl.match_hostname() function from Python 3.5"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://bitbucket.org/brandon/backports.ssl_match_hostname"
license="PSF"
distfiles="${PYPI_SITE}/b/backports.ssl_match_hostname/backports.ssl_match_hostname-${version}.tar.gz"
checksum=502ad98707319f4a51fa2ca1c677bd659008d27ded9f6380c79e8932e38dcdf2
post_install() {
# namespace provided by python-backports package
rm -f ${DESTDIR}/usr/lib/python*/site-packages/backports/__init__.py
}
python3.4-backports.ssl_match_hostname_package() {
noarch=yes
pycompile_version="3.4"
pycompile_module="backports"
depends="python3.4-backports"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}

View file

@ -0,0 +1 @@
python-backports.ssl_match_hostname