void-packages/srcpkgs/python-wrapt/template
Alessio Sergi 5b276a71d5 python-wrapt: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-16 23:45:25 +02:00

34 lines
984 B
Bash

# Template file for 'python-wrapt'
pkgname=python-wrapt
version=1.10.8
revision=2
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=4ea17e814e39883c6cf1bb9b0835d316b2f69f0f0882ffe7dad1ede66ba82c73
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}"
}