aports/community/py3-propcache/APKBUILD
fossdd 434224412d community/py3-propcache: new aport
https://github.com/aio-libs/propcache
Fast property caching

Dependency of py3-yarl-1.18.3
2025-04-05 22:00:33 +00:00

49 lines
1 KiB
Text

maintainer="fossdd <fossdd@pwned.life>"
pkgname=py3-propcache
pkgver=0.3.1
pkgrel=0
pkgdesc="Fast property caching"
url="https://github.com/aio-libs/propcache"
license="Apache-2.0"
arch="all"
depends="
py3-expandvars
python3
"
makedepends="
cython
py3-gpep517
py3-setuptools
py3-wheel
python3-dev
"
checkdepends="
py3-pytest
py3-pytest-cov
py3-pytest-covdefaults
py3-pytest-xdist
"
subpackages="$pkgname-pyc"
source="https://github.com/aio-libs/propcache/releases/download/v$pkgver/propcache-$pkgver.tar.gz"
builddir="$srcdir/propcache-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir "$builddir"/.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="
c109678adc26193d972906d923abbfe7ddeb02829fa3adb82d28988b56497a9e8126ce7186f1b0414ca6e6aba6baaddadcefdf19f7e24fbe5831e2f8da06473e propcache-0.3.1.tar.gz
"