mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
# Maintainer: Eivind Uggedal <eu@eju.no>
|
|
pkgname=py3-redis
|
|
_pkgname=redis
|
|
pkgver=4.5.4
|
|
pkgrel=1
|
|
pkgdesc="Python3 client for Redis key-value store"
|
|
url="https://github.com/andymccurdy/redis-py"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-async-timeout py3-hiredis"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
checkdepends="py3-pytest py3-mock redis"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
options="!check" # tests fail due to old version + disabled proprietary redis features
|
|
|
|
replaces="py-redis" # Backwards compatibility
|
|
provides="py-redis=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
# secfixes:
|
|
# 4.5.4-r0:
|
|
# - CVE-2023-28858
|
|
# - CVE-2023-28859
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
redis-server --dir "$builddir" &
|
|
trap "kill $!" EXIT
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2d534a2bff52273271bca74eb59029a94b4b32776a4106a521cd74cc6361c9b23cb2cca0080227675cce22aaea924f34f6c0f6fc43a84480a70451f95d9a594e redis-4.5.4.tar.gz
|
|
"
|