aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-diskcache/APKBUILD
blob: f1298d7d8f6d3a4defa5b6bf1aa001ac25f58bdc (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.1.0
pkgrel=1
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="3871e56fa9a50942e29e200df74d7f4312d21a0f51d6be2041ce71efd3c1d0c204cc1df5ac1f92825314c742bb48bf8b0a3929cee225055903953e095701c8e3  py3-diskcache-4.1.0.tar.gz"