void-packages/srcpkgs/python-redis/template
2017-08-28 04:38:15 +02:00

39 lines
988 B
Bash

# Template file for 'python-redis'
pkgname=python-redis
version=2.10.6
revision=2
noarch=yes
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() {
noarch=yes
depends="python3"
pycompile_module="redis"
replaces="python3.4-redis>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-redis_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-redis>=${version}_${revision}"
}