ayaports/user/py3-redis-nonfree/APKBUILD

39 lines
1.1 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Eivind Uggedal <eu@eju.no>
pkgname=py3-redis-nonfree
_pkgname=redis
pkgver=4.5.4
pkgrel=0
pkgdesc="Python3 client for Redis key-value store"
url="https://github.com/andymccurdy/redis-py"
arch="noarch"
license="MIT"
depends="python3 py3-deprecated py3-hiredis"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-mock redis py3-pytest-asyncio"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check"
provides="py3-redis=$pkgver-r$pkgrel"
build() {
python3 setup.py build
}
check() (
redis-server --dir "$builddir" &
trap 'kill $!' EXIT
rm tests/test_asyncio/test_cluster.py
rm tests/test_ssl.py
pytest
)
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
2d534a2bff52273271bca74eb59029a94b4b32776a4106a521cd74cc6361c9b23cb2cca0080227675cce22aaea924f34f6c0f6fc43a84480a70451f95d9a594e redis-4.5.4.tar.gz
"