void-packages/srcpkgs/python-tzlocal/template
2016-10-23 11:22:45 +02:00

33 lines
979 B
Bash

# Template file for 'python-tzlocal'
pkgname=python-tzlocal
version=1.3
revision=1
noarch=yes
wrksrc="tzlocal-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-pytz"
pycompile_module="tzlocal"
short_desc="Return the tzinfo object for the local timezone in Python2"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="CC0-1.0"
homepage="https://pypi.python.org/pypi/tzlocal"
distfiles="${PYPI_SITE}/t/tzlocal/tzlocal-${version}.tar.gz"
checksum=d160c2ce4f8b1831dabfe766bd844cf9012f766539cf84139c2faac5201882ce
python3-tzlocal_package() {
noarch=yes
depends="python3-pytz"
pycompile_module="tzlocal"
replaces="python3.4-tzlocal>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-tzlocal_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-tzlocal>=${version}_${revision}"
}