void-packages/srcpkgs/python3-tzlocal/template

29 lines
959 B
Bash

# Template file for 'python3-tzlocal'
pkgname=python3-tzlocal
version=2.1
revision=3
wrksrc="tzlocal-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-pytz"
checkdepends="python3-pytz python3-mock"
short_desc="Return the tzinfo object for the local timezone (Python 3)"
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_patch() {
# In tzlocal development tree, below file is a symlink
# Hence, the check correctly report its value
rm -f tests/test_data/symlink_localtime/etc/localtime
ln -s ../usr/share/zoneinfo/Africa/Harare \
tests/test_data/symlink_localtime/etc/localtime
}
post_install() {
vlicense LICENSE.txt LICENSE
}