void-packages/srcpkgs/python-service_identity/template

39 lines
1.2 KiB
Bash

# Template file for 'python-service_identity'
pkgname=python-service_identity
version=16.0.0
revision=3
noarch=yes
wrksrc="service_identity-${version}"
build_style=python-module
pycompile_module="service_identity"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-attrs python-idna python-pyasn1-modules"
short_desc="Service identity verification for pyOpenSSL (Python2)"
maintainer="Michael Gehring <mg@ebfe.org>"
license="MIT"
homepage="https://service-identity.readthedocs.org/"
distfiles="${PYPI_SITE}/s/service_identity/service_identity-${version}.tar.gz"
checksum=0630e222f59f91f3db498be46b1d879ff220955d7bbad719a5cb9ad14e3c3036
post_install() {
vlicense LICENSE
}
python3-service_identity_package() {
noarch=yes
depends="python3-attrs python3-idna python3-pyasn1-modules"
pycompile_module="service_identity"
replaces="python3.4-service_identity>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vlicense LICENSE
vmove usr/lib/python3*
}
}
python3.4-service_identity_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-service_identity>=${version}_${revision}"
}