# Maintainer: prspkt pkgname=py3-tzlocal pkgver=5.0.1 pkgrel=0 pkgdesc="Python tzinfo object for the local timezone" url="https://github.com/regebro/tzlocal" arch="noarch" license="MIT" replaces="py-tzlocal" # for backwards compatibility provides="py-tzlocal=$pkgver-r$pkgrel" # for backwards compatibility depends="python3 py3-tzdata" makedepends="py3-gpep517 py3-setuptools py3-wheel" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/t/tzlocal/tzlocal-$pkgver.tar.gz" builddir="$srcdir/tzlocal-$pkgver" options="!check" # the package requires a configured timezone build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 1b996dbb5782af5ee75b172a16905887e2bbb4f695a5731a09ff358bba01f4bc63961f6e2cac4d12443b3499fdbb01c38cfbec274c0e0806b9247a93951b4213 tzlocal-5.0.1.tar.gz "