void-packages/srcpkgs/python-six/template
Alessio Sergi 0dad9eaa52 python-six: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-16 17:31:55 +02:00

38 lines
969 B
Bash

# Template file for 'python-six'
pkgname=python-six
version=1.10.0
revision=2
noarch=yes
wrksrc="six-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="six.py"
short_desc="Python 2 and 3 compatibility utilities (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://pypi.python.org/pypi/six/"
license="MIT"
distfiles="${PYPI_SITE}/s/six/six-${version}.tar.gz"
checksum=105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a
post_install() {
vlicense LICENSE
}
python3-six_package() {
noarch=yes
depends="python3"
pycompile_module="six.py"
replaces="python3.4-six>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-six_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-six>=${version}_${revision}"
}