aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-fakeredis/APKBUILD
blob: 53b0319ab4bceaf1c473f66b9e91fca0f9a96b6e (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py3-fakeredis
_pkgname=${pkgname#py3-}
pkgver=1.0.5
pkgrel=1
pkgdesc="Fake implementation of redis API for testing purposes"
url="https://pypi.org/project/fakeredis/"
arch="noarch"
license="BSD-3-Clause"
makedepends="python3-dev py3-setuptools"
depends="python3 py3-six py3-redis py3-sortedcontainers"
checkdepends="py3-nose py3-lupa"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=. python3 test_fakeredis.py
}

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

sha512sums="9194c481526e09e5d572559a097d36af282f1c725c615036f8a1bb3fb07596a9223d6ffd362b67fd30cf280f768d4bf75623b64849adcc6d351683d87f9f5dea  py3-fakeredis-1.0.5.tar.gz"