1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 20:55:20 +03:00
aports/testing/py3-flask-security/APKBUILD
2023-10-18 20:44:24 +00:00

61 lines
1.6 KiB
Text

# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=py3-flask-security
pkgver=5.3.1
pkgrel=0
pkgdesc="Quick and simple security for Flask applications"
url="https://github.com/Flask-Middleware/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/Flask-Middleware/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="
5c653988d93f09e451385d9db26b3d9339f890c7c44cf942e4d85422d64120c316f1adf764dfc71531a66715a23608635defa0e4aa018bd07f17fcb955042bd9 py3-flask-security-5.3.1.tar.gz
5d0367c29f69362b1df536f26a7f399c25a351c46572cc37ffc5526c124a860a8fc0a0b01b19483daded64990247a0e48761c25e6b2a9316fbd293088315d016 nowarnings.patch
1d77cf6d7a57100a072a788cd1e4b362f3ff8fe6e4cce8fdf777f1891ce365d9d7958e956f8c7b6ff9c1079234e21b095a6cb99ed687cd907ad8cc86030da36d remove_importlib_resources.patch
"