void-packages/srcpkgs/python-cached-property/template

39 lines
1.1 KiB
Bash

# Template file for 'python-cached-property'
pkgname=python-cached-property
version=1.3.1
revision=1
noarch=yes
wrksrc="cached-property-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="cached_property.py"
short_desc="Decorator for caching properties in classes (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/pydanny/cached-property"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/c/cached-property/cached-property-${version}.tar.gz"
checksum=6562f0be134957547421dda11640e8cadfa7c23238fc4e0821ab69efdb1095f3
post_install() {
vlicense LICENSE
}
python3-cached-property_package() {
noarch=yes
depends="python3"
pycompile_module="cached_property.py"
replaces="python3.4-cached-property>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-cached-property_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-cached-property>=${version}_${revision}"
}