2018-06-17 10:53:14 +02:00
|
|
|
# Template file for 'python-cachetools'
|
|
|
|
pkgname=python-cachetools
|
|
|
|
version=2.1.0
|
2018-08-07 00:48:22 +02:00
|
|
|
revision=2
|
2018-06-17 10:53:14 +02:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="cachetools-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="cachetools"
|
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
2018-08-07 00:48:22 +02:00
|
|
|
depends="python"
|
2018-06-17 10:53:14 +02:00
|
|
|
short_desc="Python2 extensible memoizing collections and decorators"
|
|
|
|
maintainer="Peter Bui <pbui@github.bx612.space>"
|
|
|
|
homepage="https://github.com/tkem/cachetools/"
|
|
|
|
license="MIT"
|
|
|
|
distfiles="${PYPI_SITE}/c/cachetools/cachetools-${version}.tar.gz"
|
|
|
|
checksum=90f1d559512fc073483fe573ef5ceb39bf6ad3d39edc98dc55178a2b2b176fa3
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
python3-cachetools_package() {
|
|
|
|
noarch=yes
|
2018-08-07 00:48:22 +02:00
|
|
|
depends="python3"
|
2018-06-17 10:53:14 +02:00
|
|
|
pycompile_module="cachetools"
|
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3*
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
}
|