mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Automatically generated by apkbuild-pypi, template 4
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=py3-async-lru
|
|
pkgver=2.0.5
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
|
_pkgreal=async_lru
|
|
pkgdesc="Simple LRU cache for asyncio"
|
|
url="https://pypi.org/project/async-lru/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest-asyncio py3-pytest-cov py3-pytest-timeout"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/a/async-lru/async_lru-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$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="
|
|
0abba688b82a1656fff32470fb09077f68ea536db7e1436ad507a90f7b22d3c3e6552af5b66565ca6a21387dcf085799cc97b022086419da007cae2048c88837 async_lru-2.0.5.tar.gz
|
|
"
|