python-tzlocal: drop package

While we're at it, correct do_check.
This commit is contained in:
Đoàn Trần Công Danh 2020-08-12 21:36:46 +07:00
parent cd53f9c734
commit df444f7584
3 changed files with 16 additions and 18 deletions

View file

@ -1 +0,0 @@
python-tzlocal

View file

@ -1,13 +1,14 @@
# Template file for 'python-tzlocal' # Template file for 'python3-tzlocal'
pkgname=python-tzlocal pkgname=python3-tzlocal
version=2.1 version=2.1
revision=1 revision=2
archs=noarch archs=noarch
wrksrc="tzlocal-${version}" wrksrc="tzlocal-${version}"
build_style=python-module build_style=python3-module
hostmakedepends="python-setuptools python3-setuptools" hostmakedepends="python3-setuptools"
depends="python-pytz" depends="python3-pytz"
short_desc="Return the tzinfo object for the local timezone (Python2)" checkdepends="python3-pytz python3-mock"
short_desc="Return the tzinfo object for the local timezone (Python 3)"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>" maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="MIT" license="MIT"
homepage="https://github.com/regebro/tzlocal" homepage="https://github.com/regebro/tzlocal"
@ -15,16 +16,14 @@ changelog="https://raw.githubusercontent.com/regebro/tzlocal/master/CHANGES.txt"
distfiles="${PYPI_SITE}/t/tzlocal/tzlocal-${version}.tar.gz" distfiles="${PYPI_SITE}/t/tzlocal/tzlocal-${version}.tar.gz"
checksum=643c97c5294aedc737780a49d9df30889321cbe1204eac2c2ec6134035a92e44 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() { post_install() {
vlicense LICENSE.txt LICENSE 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
}
}