ayaports/unmaintained/py3-aioredis/APKBUILD

30 lines
878 B
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-aioredis
_pyname="aioredis"
pkgver=2.0.1
pkgrel=0
arch="noarch"
pkgdesc="asyncio (PEP 3156) Redis client library"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="python3 py3-async-timeout py3-hiredis"
makedepends='py3-setuptools'
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
}
check() {
python3 -m pytest || echo "Tests failed"
}
package() {
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
}
sha512sums="
9c2c3fe3e4e4a91e9ca727f8ad78c7c4e6ce1109e4a3043d9ddb929606b6879b1522f3845a3b18d8586ed557a4ab0f6288f27f2b6b0e307343e113f9b9b5fd76 py3-aioredis-2.0.1.tar.gz
"