python-service_identity: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-16 22:19:13 +02:00
parent 360a35337e
commit e391cadb45
2 changed files with 15 additions and 9 deletions

View file

@ -1,15 +1,14 @@
# Template file for 'python-service_identity'
pkgname=python-service_identity
version=16.0.0
revision=2
revision=3
noarch=yes
wrksrc="service_identity-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="service_identity"
hostmakedepends="python-setuptools python3.4-setuptools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-attrs python-idna python-pyasn1-modules"
short_desc="Service identity verification for pyOpenSSL - Python2"
short_desc="Service identity verification for pyOpenSSL (Python2)"
maintainer="Michael Gehring <mg@ebfe.org>"
license="MIT"
homepage="https://service-identity.readthedocs.org/"
@ -20,14 +19,20 @@ post_install() {
vlicense LICENSE
}
python3.4-service_identity_package() {
python3-service_identity_package() {
noarch=yes
depends="python3.4-attrs python3.4-idna python3.4-pyasn1-modules"
pycompile_version="3.4"
depends="python3-attrs python3-idna python3-pyasn1-modules"
pycompile_module="service_identity"
short_desc="${short_desc/Python2/Python3.4}"
replaces="python3.4-service_identity>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vlicense LICENSE
vmove usr/lib/python3.4
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}"
}

View file

@ -0,0 +1 @@
python-service_identity