32 lines
912 B
Bash
32 lines
912 B
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgname=python-cachetools
|
|
pkgver=5.5.0
|
|
pkgrel=2
|
|
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=('8bbc259f0e870a966511e29b429b6c55cf77bcea2865e0d8bdbce89a4db563ba840c76453667c30e916df087a1d16c1da0c7710e68027d062aa975a67e7d94eb')
|
|
|
|
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/
|
|
}
|