void-packages/srcpkgs/python-hiredis/template

29 lines
757 B
Bash

# Template file for 'python-hiredis'
pkgname=python-hiredis
version=0.2.0
revision=4
wrksrc="hiredis-${version}"
build_style=python-module
hostmakedepends="python-devel python3-devel"
makedepends="python-devel python3-devel hiredis-devel"
pycompile_module="hiredis"
short_desc="Python2 wrapper for hiredis"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="BSD"
homepage="https://github.com/redis/hiredis-py"
distfiles="${PYPI_SITE}/h/hiredis/hiredis-${version}.tar.gz"
checksum=ca958e13128e49674aa4a96f02746f5de5973f39b57297b84d59fd44d314d5b5
post_install() {
vlicense COPYING
}
python3-hiredis_package() {
pycompile_module="hiredis"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING
}
}