From b7c7388f483a20e739216e3926e0ffe19743bd1f Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 29 Dec 2020 09:56:59 -0500 Subject: [PATCH] python-pytz: update to 2020.5. --- srcpkgs/python-pytz/template | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python-pytz/template b/srcpkgs/python-pytz/template index f813c9123fa..7b248d9403b 100644 --- a/srcpkgs/python-pytz/template +++ b/srcpkgs/python-pytz/template @@ -1,17 +1,23 @@ # Template file for 'python-pytz' pkgname=python-pytz -version=2020.4 +version=2020.5 revision=1 wrksrc="pytz-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" depends="python tzdata" +checkdepends="python-pytest python3-pytest tzdata" short_desc="Python2 timezone library" maintainer="Alessio Sergi " license="MIT" homepage="https://pythonhosted.org/pytz/" distfiles="${PYPI_SITE}/p/pytz/pytz-${version}.tar.gz" -checksum=3e6b7dd2d1e0a59084bcee14a17af60c5c562cdc16d828e8eba2e683d3a7e268 +checksum=180befebb1927b16f6b57101720075a984c019ac16b1b7575673bea42c6c3da5 + +do_check() { + PYTHONPATH=build-2.7/lib python2 -m pytest + PYTHONPATh=build-${py3_ver}/lib python3 -m pytest +} post_install() { # use system tz database