void-packages/srcpkgs/python-cachetools/template

32 lines
827 B
Bash

# Template file for 'python-cachetools'
pkgname=python-cachetools
version=3.1.0
revision=1
archs=noarch
wrksrc="cachetools-${version}"
build_style=python-module
pycompile_module="cachetools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 extensible memoizing collections and decorators"
maintainer="Peter Bui <pbui@github.bx612.space>"
license="MIT"
homepage="https://github.com/tkem/cachetools/"
distfiles="${PYPI_SITE}/c/cachetools/cachetools-${version}.tar.gz"
checksum=9efcc9fab3b49ab833475702b55edd5ae07af1af7a4c627678980b45e459c460
post_install() {
vlicense LICENSE
}
python3-cachetools_package() {
archs=noarch
depends="python3"
pycompile_module="cachetools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}