# Template file for 'python3-hiredis' pkgname=python3-hiredis version=2.3.0 revision=2 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" _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 LICENSE }