mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 20:55:20 +03:00
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# Contributor: Simon Rupf <simon@rupf.net>
|
|
# Maintainer: Philipp Glaum <p@pglaum.de>
|
|
pkgname=py3-flask-sqlalchemy
|
|
_pkgname=Flask-SQLAlchemy
|
|
pkgver=3.0.3
|
|
pkgrel=1
|
|
pkgdesc="Adds SQLAlchemy support to your Flask application."
|
|
url="https://pypi.org/project/Flask-SQLAlchemy/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-flask py3-greenlet py3-sqlalchemy"
|
|
makedepends="py3-gpep517 py3-installer py3-pdm-backend py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest py3-mock"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
|
pdm-backend.patch
|
|
"
|
|
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="
|
|
0a49780048491bbef7384d895a34ea2732f9d6702fb40b07987eb8d0ceb73aae7988539febaeafcf050b7dc67f1297301497c84c90d139b4bf2874201186fcef Flask-SQLAlchemy-3.0.3.tar.gz
|
|
412dcbe01bb3305b12da33794f9309f385f559db5444b2cbd1c40d3f915beb327754335c1896241b1b7782a89ad3f75a13165e420c7dc3cb2593d5c085f28266 pdm-backend.patch
|
|
"
|