void-packages/srcpkgs/python-six/template

34 lines
837 B
Bash

# Template file for 'python-six'
pkgname=python-six
version=1.9.0
revision=1
noarch=yes
wrksrc="six-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
pycompile_module="six.py"
short_desc="Python 2 and 3 compatibility utilities (Python2 library)"
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=e24052411fc4fbd1f672635537c3fc2330d9481b18c0317695b46259512c91d5
post_install() {
vlicense LICENSE
}
python3.4-six_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="six.py"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense ${wrksrc}/LICENSE
}
}