aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-cachetools/APKBUILD
blob: 35e9d607dc39e09864dbe6c66df19976be2f6c4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-cachetools
_pyname=cachetools
pkgver=4.0.0
pkgrel=0
pkgdesc="Extensible memoizing collections and decorators"
url="https://github.com/tkem/cachetools"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/tkem/cachetools/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest .
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d0711fef71ef51fe8860a1ca9f14faa76ec6bad1e40a2f6a2ba49f550f15d83d1531770e451e6b180ec77f66f3b382ce4d7c0ec2253782f8057c4e254aee6852  py3-cachetools-4.0.0.tar.gz"