# Contributor: Leonardo Arena # Maintainer: pkgname=py3-django-timezone-field _pkgname=django-timezone-field pkgver=6.0.1 pkgrel=0 pkgdesc="Django app providing database and form fields for pytz timezone objects" url="https://pypi.org/project/django-timezone-field" arch="noarch" license="BSD-2-Clause" depends="py3-django" makedepends=" py3-gpep517 py3-poetry-core " checkdepends=" py3-django-rest-framework py3-pytest py3-pytest-django py3-pytest-lazy-fixture py3-tz tzdata " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/mfogel/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-django-timezone-field" # Backwards compatibility provides="py-django-timezone-field=$pkgver-r$pkgrel" # Backwards compatibility 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=" e6d1631af6a4d93f2fae236cf12d8fda15dfd6d70ee01c496364c3e5e141fff2bb5982f607adf474617a86b9f0f611306a17d1d892556a087424110ee3de541d py3-django-timezone-field-6.0.1.tar.gz "