aports/community/py3-flask-babel/APKBUILD
2023-04-19 13:08:17 +00:00

40 lines
1.2 KiB
Plaintext

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-flask-babel
pkgver=3.1.0
pkgrel=1
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"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/python-babel/flask-babel/archive/refs/tags/v$pkgver.tar.gz"
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="
74faab1e259fe38caf583982bf7a3595440ef37ec223a68243fa43eadfd4d661055706ba8eb92d29f37586e6a27d4f00fbdf5be8443820346b35b9551b716fc7 py3-flask-babel-3.1.0.tar.gz
"