void-packages/srcpkgs/python-redis/template

32 lines
777 B
Bash

# Template file for 'python-redis'
pkgname=python-redis
version=2.10.6
revision=2
archs=noarch
wrksrc="redis-${version}"
build_style=python-module
pycompile_module="redis"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 client for Redis key-value store"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="MIT"
homepage="https://github.com/andymccurdy/redis-py"
distfiles="${PYPI_SITE}/r/redis/redis-${version}.tar.gz"
checksum=a22ca993cea2962dbb588f9f30d0015ac4afcc45bee27d3978c0dbe9e97c6c0f
post_install() {
vlicense LICENSE
}
python3-redis_package() {
archs=noarch
depends="python3"
pycompile_module="redis"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}