aports/testing/py3-flask-sqlalchemy/APKBUILD
Simon Rupf 20ba8aa242 testing/py3-flask-sqlalchemy: upgrade to 3.0.5
> -   ``Pagination.next()`` enforces ``max_per_page``. :issue:`1201`
> -   Improve type hint for ``get_or_404`` return value to be non-optional. :pr:`1226`

-- https://github.com/pallets-eco/flask-sqlalchemy/blob/3.0.5/CHANGES.rst
2023-06-21 21:44:45 +00:00

38 lines
1.1 KiB
Plaintext

# Contributor: Simon Rupf <simon@rupf.net>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-flask-sqlalchemy
_pkgname=flask_sqlalchemy
pkgver=3.0.5
pkgrel=0
pkgdesc="Adds SQLAlchemy support to your Flask application."
url="https://pypi.org/project/Flask-SQLAlchemy/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-flask py3-greenlet py3-sqlalchemy"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="py3-pytest py3-mock"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
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="
ecb6df94e1db4298b335a65e54eae171fef75bd7f1cc1e251933b1fdc7e85bbba0c03b1c5b41c3e150898bdb36fc0021b4649b866a12d5b0c180f773dff5fd6b flask_sqlalchemy-3.0.5.tar.gz
"