python3-hiredis: update to 2.3.0

This commit is contained in:
Andrew J. Hesford 2023-09-23 21:03:21 -04:00
parent 1db1b7b2b8
commit 986e8ab909

View file

@ -1,18 +1,34 @@
# Template file for 'python3-hiredis'
pkgname=python3-hiredis
version=2.0.0
revision=4
version=2.3.0
revision=1
build_wrksrc="hiredis-py-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel hiredis-devel"
depends="python3"
checkdepends="python3-pytest $depends"
short_desc="Python3 wrapper for hiredis"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/redis/hiredis-py"
distfiles="${PYPI_SITE}/h/hiredis/hiredis-${version}.tar.gz"
checksum=81d6d8e39695f2c37954d1011c0480ef7cf444d4e3ae24bc5e89ee5de360139a
_hiredis_hash="60e5075d4ac77424809f855ba3e398df7aacefe8"
distfiles="
https://github.com/redis/hiredis-py/archive/v${version}.tar.gz
https://github.com/redis/hiredis/archive/${_hiredis_hash}.tar.gz
"
checksum="f595ad58fa88c027f376eda2b336837e5cffae7c1fbbaf13dcd96efffd26357c
b6d6f799b7714d85316f9ebfb76a35a78744f42ea3b6774289d882d13a2f0383"
post_extract() {
rmdir "${build_wrksrc}/vendor/hiredis"
mv "hiredis-${_hiredis_hash}" "${build_wrksrc}/vendor/hiredis"
}
do_check() {
PYTHONPATH="$(cd build/lib* && pwd)" pytest3 tests
}
post_install() {
vlicense COPYING
vlicense LICENSE
}