# Maintainer: Simon Rupf pkgname=py3-flask-caching _pkgname=Flask-Caching pkgver=2.0.2 pkgrel=1 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=" 06b97cfa38f3b45adc1347c80329b39675f8441337f3dfd717f6e0ec7b6d8062be92c55424206bc6e25b637e350fb47e34f7b4ef800c420824eb1c7fda3b0425 Flask-Caching-2.0.2.tar.gz "