void-packages/srcpkgs/python-lazy-object-proxy/template

35 lines
1.1 KiB
Bash

# Template file for 'python-lazy-object-proxy'
pkgname=python-lazy-object-proxy
version=1.2.2
revision=2
wrksrc="lazy-object-proxy-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
pycompile_module="lazy_object_proxy"
short_desc="Fast and thorough lazy object proxy (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/ionelmc/python-lazy-object-proxy"
license="2-clause-BSD"
distfiles="${PYPI_SITE}/l/lazy-object-proxy/lazy-object-proxy-${version}.tar.gz"
checksum=ddd4cf1c74279c349cb7b9c54a2efa5105854f57de5f2d35829ee93631564268
post_install() {
vlicense LICENSE
}
python3-lazy-object-proxy_package() {
pycompile_module="lazy_object_proxy"
replaces="python3.4-lazy-object-proxy>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-lazy-object-proxy_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-lazy-object-proxy>=${version}_${revision}"
}