void-packages/srcpkgs/python-wrapt/template
2019-12-23 18:05:49 +01:00

28 lines
781 B
Bash

# Template file for 'python-wrapt'
pkgname=python-wrapt
version=1.11.2
revision=2
wrksrc="wrapt-${version}"
build_style=python-module
pycompile_module="wrapt"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
short_desc="Python2 module for decorators, wrappers and monkey patching"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-2-Clause"
homepage="https://github.com/GrahamDumpleton/wrapt"
distfiles="${PYPI_SITE}/w/wrapt/wrapt-${version}.tar.gz"
checksum=565a021fd19419476b9362b05eeaa094178de64f8361e44468f9e9d7843901e1
post_install() {
vlicense LICENSE
}
python3-wrapt_package() {
pycompile_module="wrapt"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}