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

32 lines
884 B
Bash

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