35 lines
985 B
Bash
35 lines
985 B
Bash
# Template file for 'python-wrapt'
|
|
pkgname=python-wrapt
|
|
version=1.10.11
|
|
revision=1
|
|
wrksrc="wrapt-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
pycompile_module="wrapt"
|
|
short_desc="Python2 module for decorators, wrappers and monkey patching"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/GrahamDumpleton/wrapt"
|
|
license="2-clause-BSD"
|
|
distfiles="${PYPI_SITE}/w/wrapt/wrapt-${version}.tar.gz"
|
|
checksum=d4d560d479f2c21e1b5443bbd15fe7ec4b37fe7e53d335d3b9b0a7b1226fe3c6
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-wrapt_package() {
|
|
pycompile_module="wrapt"
|
|
replaces="python3.4-wrapt>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-wrapt_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-wrapt>=${version}_${revision}"
|
|
}
|