aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-diskcache/APKBUILD
blob: 6016851422447b2732ed6b167ce81062ae72ae6b (plain)
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
30
31
32
# Contributor:
# Maintainer:
pkgname=py3-diskcache
pkgver=4.0.0
pkgrel=0
pkgdesc="disk caching implementation"
options="!check" # test_incr_update_keyerror fails
url="http://www.grantjenks.com/docs/diskcache/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-xdist py3-mock py3-django"
source="$pkgname-$pkgver.tar.gz::https://github.com/grantjenks/python-diskcache/archive/v$pkgver.tar.gz"
builddir="$srcdir"/python-diskcache-$pkgver

replaces="py-diskcache" # Backwards compatibility
provides="py-diskcache=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

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

sha512sums="b9855204784fc641c4be8bf06eff9a968dc6dfae2959f69d140515e78af4f061e58ab5e680a97c5eb560cb337f8f8e4addefbe6e0826854c720106b078fbf252  py3-diskcache-4.0.0.tar.gz"