1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-flask-babel/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

41 lines
1.3 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
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
"