void-packages/srcpkgs/python-backports.ssl_match_.../template

34 lines
1.1 KiB
Bash
Raw Normal View History

# 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
}
}