void-packages/srcpkgs/python-tzlocal/template

32 lines
834 B
Bash

# Template file for 'python-tzlocal'
pkgname=python-tzlocal
version=1.5.1
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 (Python2)"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="MIT"
homepage="https://github.com/regebro/tzlocal"
distfiles="${PYPI_SITE}/t/tzlocal/tzlocal-${version}.tar.gz"
checksum=4ebeb848845ac898da6519b9b31879cf13b6626f7184c496037b818e238f2c4e
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-tzlocal_package() {
noarch=yes
depends="python3-pytz"
pycompile_module="tzlocal"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}