32 lines
912 B
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-cachetools
pkgver=5.3.3
pkgrel=1
pkgdesc="Extensible memoizing collections and decorators"
url="https://github.com/tkem/cachetools"
license=('MIT')
arch=(any)
depends=('python')
makedepends=('git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("git+https://github.com/tkem/cachetools.git#tag=v$pkgver")
sha512sums=('c18f0e92e7ccc5d58339268b5b689baca3d2cefa66774fdd55b79720e159ec0e90f4e7ff347dd4f6906e9dcb50a7a11ed20957dca20f7622c62350546e4ea7cb')
build() {
cd cachetools
python -m build --wheel --no-isolation
}
check() {
cd cachetools
PYTHONPATH=src pytest
}
package() {
cd cachetools
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}