# Contributor: psykose # Maintainer: Antoine Martin (ayakael) pkgname=py3-tzdata pkgver=2023.3 pkgrel=3 pkgdesc="Python package wrapping the IANA time zone database" url="https://github.com/python/tzdata" arch="noarch" license="Apache-2.0" depends="python3 py3-attrs" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-pytest-subtests" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/python/tzdata/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/tzdata-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 60f81fdf37b4d155753a58ea8f840256363f65df0ac75caa45108672a55cdd8e3ffeeda5b00c6fe803e68be533619865fcaebdbd0b671754a1a32ccb15157af2 py3-tzdata-2023.3.tar.gz "