aports/community/py3-flask-caching/APKBUILD
2025-03-22 14:40:36 +00:00

37 lines
1.1 KiB
Text

# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=py3-flask-caching
_pkgname=flask_caching
pkgver=2.3.1
pkgrel=0
pkgdesc="Flask caching support"
url="https://flask-caching.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-cachelib py3-flask"
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
checkdepends="py3-asgiref py3-redis py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # depends on nonfree redis features
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="
ec591131746ee15f6e451b38af93194eeede1ff191b78042eafdf4fc9ab91eec6347372312cd9be8a92880679446af0c98be546b23845a12ef602e9593d48955 flask_caching-2.3.1.tar.gz
"