From df444f7584e06df3eab6dc4a5e3cfc74fd2ed9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 12 Aug 2020 21:36:46 +0700 Subject: [PATCH] python-tzlocal: drop package While we're at it, correct do_check. --- srcpkgs/python3-tzlocal | 1 - .../template | 33 +++++++++---------- .../update | 0 3 files changed, 16 insertions(+), 18 deletions(-) delete mode 120000 srcpkgs/python3-tzlocal rename srcpkgs/{python-tzlocal => python3-tzlocal}/template (50%) rename srcpkgs/{python-tzlocal => python3-tzlocal}/update (100%) diff --git a/srcpkgs/python3-tzlocal b/srcpkgs/python3-tzlocal deleted file mode 120000 index dc47d899228..00000000000 --- a/srcpkgs/python3-tzlocal +++ /dev/null @@ -1 +0,0 @@ -python-tzlocal \ No newline at end of file diff --git a/srcpkgs/python-tzlocal/template b/srcpkgs/python3-tzlocal/template similarity index 50% rename from srcpkgs/python-tzlocal/template rename to srcpkgs/python3-tzlocal/template index 52195335ef1..7ea15464075 100644 --- a/srcpkgs/python-tzlocal/template +++ b/srcpkgs/python3-tzlocal/template @@ -1,13 +1,14 @@ -# Template file for 'python-tzlocal' -pkgname=python-tzlocal +# Template file for 'python3-tzlocal' +pkgname=python3-tzlocal version=2.1 -revision=1 +revision=2 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)" +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 " license="MIT" 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" 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 } - -python3-tzlocal_package() { - archs=noarch - depends="python3-pytz" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE.txt LICENSE - } -} diff --git a/srcpkgs/python-tzlocal/update b/srcpkgs/python3-tzlocal/update similarity index 100% rename from srcpkgs/python-tzlocal/update rename to srcpkgs/python3-tzlocal/update