# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-flask-babel pkgver=3.0.1 pkgrel=0 pkgdesc="Flask i18n/l10n support" url="https://github.com/python-babel/flask-babel" arch="noarch" license="BSD-3-Clause" depends="python3 py3-flask py3-jinja2 py3-babel" makedepends="py3-poetry-core py3-gpep517" checkdepends="py3-tz py3-pytest py3-pytest-mock" source="$pkgname-$pkgver.tar.gz::https://github.com/python-babel/flask-babel/archive/refs/tags/v$pkgver.tar.gz no-toplevel.patch " builddir="$srcdir"/flask-babel-$pkgver replaces="py-flask-babel" # Backwards compatibility provides="py-flask-babel=$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=" d189aac67f5671c3053efa1c8049fc364c031a77568db7a502d63e2ea09867c981c12669752f1524faecaddd4594ab064249f08b8af50dfde7267322b50ed2af py3-flask-babel-3.0.1.tar.gz b0d04300b2a5a07cab334d0aee5aa083689f5a51d172648f4aba7edb754e3724f4e8c118f468711fb5de521e9dda320abcf2da9272c50715558cc077cbcc9601 no-toplevel.patch "