aports/testing/py3-flask-security/APKBUILD
Celeste 3e4e3f767c testing/py3-flask-security: fix source url
moved to "pallets-eco", according to 5c38f6a2be/README.md

tarball checksum remains the same
2024-09-30 03:59:40 +00:00

61 lines
1.6 KiB
Text

# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=py3-flask-security
pkgver=5.4.3
pkgrel=2
pkgdesc="Quick and simple security for Flask applications"
url="https://github.com/pallets-eco/flask-security"
arch="noarch"
license="MIT"
depends="
py3-email-validator
py3-flask
py3-flask-babel
py3-flask-login
py3-flask-mailman
py3-flask-principal
py3-flask-sqlalchemy
py3-flask-wtf
py3-itsdangerous
py3-passlib
py3-phonenumbers
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-dateutil
py3-pytest
py3-pytest-xdist
"
subpackages="$pkgname-pyc"
source="https://github.com/pallets-eco/flask-security/archive/$pkgver/py3-flask-security-$pkgver.tar.gz
nowarnings.patch
remove_importlib_resources.patch
"
builddir="$srcdir/flask-security-$pkgver"
options="!check" # tests broken
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 -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
9fdce3dfbfd622ae417166da383bb8bf744648b92026b4f28640e6658d355d25f7267382636bc1a5cc47969a7c0ebdd43d66b29aaafdd0cf7a6cafb248aff7a6 py3-flask-security-5.4.3.tar.gz
5d0367c29f69362b1df536f26a7f399c25a351c46572cc37ffc5526c124a860a8fc0a0b01b19483daded64990247a0e48761c25e6b2a9316fbd293088315d016 nowarnings.patch
1d77cf6d7a57100a072a788cd1e4b362f3ff8fe6e4cce8fdf777f1891ce365d9d7958e956f8c7b6ff9c1079234e21b095a6cb99ed687cd907ad8cc86030da36d remove_importlib_resources.patch
"