# Contributor: Galen Abell <galen@galenabell.com> # Maintainer: Galen Abell <galen@galenabell.com> pkgname=py3-x-wr-timezone _pyname=x-wr-timezone pkgver=2.0.1 pkgrel=0 pkgdesc="Handling of non-standard X-WR-TIMEZONE icalendar property in Python and Command Line" url="https://github.com/niccokunzmann/x-wr-timezone" arch="noarch" license="LGPL-3.0-or-later" depends="python3 py3-click py3-icalendar py3-tzdata" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-pytest-click py3-tz" subpackages="$pkgname-pyc" source="$_pyname-$pkgver.tar.gz::https://github.com/niccokunzmann/x-wr-timezone/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { # Disable command line test since we aren't installed yet. # Disable unnecessary test that adds another dependency. PYTHONPATH=. pytest \ --ignore test/test_command_line.py \ --ignore test/test_readme.py } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" ceb20827e9204b05566102d9dd8ef214d1507338e95d00509f9aeaa0f43faada880a46ad7e88f88ee24dce705d7adbc7a0759fd733fb90fa8d8a232e7080606f x-wr-timezone-2.0.1.tar.gz "