ayaports/user/py3-aioredis/APKBUILD
2022-07-29 15:47:03 +00:00

36 lines
943 B
Text

# Maintainer: Antoine Martin <dev@ayakael.net>
_pyname=aioredis
pkgname="py3-$_pyname"
pkgver=1.3.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() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "${builddir}"
python -m pytest || echo "Tests failed"
}
package() {
cd "$builddir"
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="
12ab821008582435ac4c4c207b7f4c75218eca072cad05d7a91961a1c8801aac18742260fa74b0aa0f1fcd05cc40e30c98ffda94f1b1b5b21a61fd6973bce1e6 py3-aioredis-1.3.1.tar.gz
"