void-packages/srcpkgs/python-tzlocal/template

31 lines
862 B
Bash

# Template file for 'python-tzlocal'
pkgname=python-tzlocal
version=2.1
revision=1
archs=noarch
wrksrc="tzlocal-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-pytz"
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"
changelog="https://raw.githubusercontent.com/regebro/tzlocal/master/CHANGES.txt"
distfiles="${PYPI_SITE}/t/tzlocal/tzlocal-${version}.tar.gz"
checksum=643c97c5294aedc737780a49d9df30889321cbe1204eac2c2ec6134035a92e44
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-tzlocal_package() {
archs=noarch
depends="python3-pytz"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}