mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
https://github.com/pallets/flask/releases/tag/3.1.0 https://github.com/pallets/flask/releases/tag/3.1.1
52 lines
1.2 KiB
Text
52 lines
1.2 KiB
Text
# Contributor: Steven Guikal <void@fluix.one>
|
|
maintainer="fossdd <fossdd@pwned.life>"
|
|
pkgname=py3-flask
|
|
_pkgname=flask
|
|
pkgver=3.1.1
|
|
pkgrel=0
|
|
pkgdesc="web development microframework"
|
|
url="https://flask.palletsprojects.com/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-blinker
|
|
py3-click
|
|
py3-itsdangerous
|
|
py3-jinja2
|
|
py3-werkzeug
|
|
python3
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-flit-core
|
|
"
|
|
checkdepends="
|
|
py3-pytest-xdist
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="py-flask" # Backwards compatibility
|
|
provides="py-flask=$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 -n auto
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
b582b71e10f72c2096f4a665a8182775165f48eece8bcded9ca5791bc575e3333ac913fb355279f0bee93fc57c16f9a8b635b329bfd71ed42df2b288c1a69741 flask-3.1.1.tar.gz
|
|
"
|