void-packages/srcpkgs/python-itsdangerous/template

40 lines
1.1 KiB
Bash

# Template file for 'python-itsdangerous
pkgname=python-itsdangerous
version=0.24
revision=2
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="itsdangerous"
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>"
homepage="http://github.com/mitsuhiko/itsdangerous"
license="BSD"
distfiles="${PYPI_SITE}/i/itsdangerous/itsdangerous-${version}.tar.gz"
checksum=cbb3fcf8d3e33df861709ecaf89d9e6629cff0a217bc2848f1b41cd30d360519
post_install() {
vlicense LICENSE
}
python3-itsdangerous_package() {
noarch=yes
depends="python3"
pycompile_module="itsdangerous"
replaces="python3.4-itsdangerous>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-itsdangerous_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-itsdangerous>=${version}_${revision}"
}