void-packages/srcpkgs/python-voluptuous/template

31 lines
808 B
Bash

# Template file for 'python-voluptuous'
pkgname=python-voluptuous
version=0.10.5
revision=2
noarch=yes
wrksrc="voluptuous-${version}"
build_style=python-module
pycompile_module="voluptuous"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 data validation library"
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
license="3-clause-BSD"
homepage="https://github.com/alecthomas/voluptuous"
distfiles="${PYPI_SITE}/v/voluptuous/voluptuous-${version}.tar.gz"
checksum=7a7466f8dc3666a292d186d1d871a47bf2120836ccb900d5ba904674957a2396
post_install() {
vlicense COPYING
}
python3-voluptuous_package() {
depends="python3"
pycompile_module="voluptuous"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING
}
}