backports/py3-cachetools: new aport
This commit is contained in:
parent
cc4c41c419
commit
4c4d58516e
1 changed files with 40 additions and 0 deletions
40
backports/py3-cachetools/APKBUILD
Normal file
40
backports/py3-cachetools/APKBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=py3-cachetools
|
||||
_pyname=cachetools
|
||||
pkgver=5.3.0
|
||||
pkgrel=0
|
||||
pkgdesc="Extensible memoizing collections and decorators"
|
||||
url="https://github.com/tkem/cachetools"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3"
|
||||
makedepends="
|
||||
py3-gpep517
|
||||
py3-setuptools
|
||||
py3-wheel
|
||||
"
|
||||
checkdepends="py3-pytest"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/tkem/cachetools/archive/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pyname-$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="
|
||||
6b600f48f28b98c5480a1952317c2f27c132cf609c6651e66165351f23fba6c028cdbf1bba0f2159a622d8cd3db9bfa09dde7e08e15929336e82358f61e495bc py3-cachetools-5.3.0.tar.gz
|
||||
"
|
Loading…
Reference in a new issue