void-packages/srcpkgs/python-redis/template
Alessio Sergi e0f6db88d6 python-redis: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 09:39:55 +02:00

38 lines
988 B
Bash

# Template file for 'python-redis'
pkgname=python-redis
version=2.10.5
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=5dfbae6acfc54edf0a7a415b99e0b21c0a3c27a7f787b292eea727b1facc5533
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}"
}