# Template file for 'python-cached-property'
pkgname=python-cached-property
version=1.4.3
revision=1
noarch=yes
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=f1f9028757dc40b4cb0fd2234bd7b61a302d7b84c683cb8c2c529238a24b8938

post_install() {
	vlicense LICENSE
}

python3-cached-property_package() {
	noarch=yes
	depends="python3"
	pycompile_module="cached_property.py"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
