void-packages/srcpkgs/python-redis/template
2015-12-01 00:00:00 +01:00

33 lines
833 B
Bash

# Template file for 'python-redis'
pkgname=python-redis
version=2.10.5
revision=1
noarch=yes
wrksrc="redis-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="redis"
hostmakedepends="python-setuptools python3.4-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.4-redis_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="redis"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense LICENSE
}
}