From 986e8ab909f7dfc79cd140b0bb2f446e7324823e Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 23 Sep 2023 21:03:21 -0400 Subject: [PATCH] python3-hiredis: update to 2.3.0 --- srcpkgs/python3-hiredis/template | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3-hiredis/template b/srcpkgs/python3-hiredis/template index ec5a0c18e02..501584dbd6e 100644 --- a/srcpkgs/python3-hiredis/template +++ b/srcpkgs/python3-hiredis/template @@ -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 " 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 }