void-packages/srcpkgs/python-hiredis/template
2017-08-28 05:30:59 +02:00

35 lines
966 B
Bash

# Template file for 'python-hiredis'
pkgname=python-hiredis
version=0.2.0
revision=3
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"
replaces="python3.4-hiredis>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING
}
}
python3.4-hiredis_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-hiredis>=${version}_${revision}"
}