python-itsdangerous: 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 19:45:09 +02:00
parent 2bf2e919c6
commit 14f27d5ea8
2 changed files with 15 additions and 9 deletions

View file

@ -1,14 +1,13 @@
# Template file for 'python-itsdangerous
pkgname=python-itsdangerous
version=0.24
revision=1
revision=2
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="itsdangerous"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python"
short_desc="Various helpers to pass trusted data to untrusted enviroments and back"
maintainer="Markus Berger <pulux@pf4sh>"
@ -17,13 +16,19 @@ license="BSD"
distfiles="${PYPI_SITE}/i/itsdangerous/itsdangerous-${version}.tar.gz"
checksum=cbb3fcf8d3e33df861709ecaf89d9e6629cff0a217bc2848f1b41cd30d360519
python3.4-itsdangerous_package() {
python3-itsdangerous_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
depends="python3"
pycompile_module="itsdangerous"
short_desc="${short_desc/Python2/Python3.4}"
replaces="python3.4-itsdangerous>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3.4
vmove usr/lib/python3*
}
}
python3.4-itsdangerous_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-itsdangerous>=${version}_${revision}"
}

View file

@ -0,0 +1 @@
python-itsdangerous