vp-build/srcpkgs/python-service_identity/template

32 lines
961 B
Bash

# Template file for 'python-service_identity'
pkgname=python-service_identity
version=17.0.0
revision=2
noarch=yes
wrksrc="service_identity-${version}"
build_style=python-module
pycompile_module="service_identity"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-attrs python-pyasn1-modules python-openssl"
short_desc="Service identity verification for pyOpenSSL (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://service-identity.readthedocs.org/"
distfiles="${PYPI_SITE}/s/service_identity/service_identity-${version}.tar.gz"
checksum=4001fbb3da19e0df22c47a06d29681a398473af4aa9d745eca525b3b2c2302ab
post_install() {
vlicense LICENSE
}
python3-service_identity_package() {
noarch=yes
depends="python3-attrs python3-pyasn1-modules python3-openssl"
pycompile_module="service_identity"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vlicense LICENSE
vmove usr/lib/python3*
}
}