ayaports/user/py3-redis-nonfree/APKBUILD
build@apk-groulx 7c2d413554 3.17 cleanup
2023-01-11 00:40:45 +00:00

39 lines
1.1 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Eivind Uggedal <eu@eju.no>
pkgname=py3-redis-nonfree
_pkgname=redis
pkgver=4.4.0
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"
replaces="py-redis" # Backwards compatibility
provides="py-redis=$pkgver-r$pkgrel" # Backwards compatibility
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="
935f14960f55705a97b4530d8555486947a9dae21de403762ac6fd52e78d0a06f8f024a9d62a576e5831e3b0bac317a3d1d7693e871adbee41403aa1b44f48b4 redis-4.4.0.tar.gz
"