void-packages/srcpkgs/python-dogpile.cache/template
2020-05-11 20:28:23 +02:00

35 lines
917 B
Bash

# Template file for 'python-dogpile.cache'
pkgname=python-dogpile.cache
version=0.9.2
revision=1
archs=noarch
wrksrc="dogpile.cache-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python python-decorator"
checkdepends="python3-decorator tox"
short_desc="Caching front-end based on the Dogpile lock (Python2)"
maintainer="Daniel Santana <daniel@santana.tech>"
license="BSD-3-Clause"
homepage="https://github.com/sqlalchemy/dogpile.cache"
distfiles="${PYPI_SITE}/d/dogpile.cache/dogpile.cache-${version}.tar.gz"
checksum=bc9dde1ffa5de0179efbcdc73773ef0553921130ad01955422f2932be35c059e
do_check() {
tox -e py27,py${py3_ver/./}
}
post_install() {
vlicense LICENSE
}
python3-dogpile.cache_package() {
archs=noarch
depends="python3 python3-decorator"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}