33 lines
785 B
Bash
33 lines
785 B
Bash
# Template file for 'python-yaml'
|
|
pkgname=python-yaml
|
|
version=3.13
|
|
revision=2
|
|
wrksrc="PyYAML-${version}"
|
|
build_style=python-module
|
|
pycompile_module="yaml"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="libyaml-devel python-devel python3-devel"
|
|
short_desc="YAML parser and emitter for Python2"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://pyyaml.org/wiki/PyYAML"
|
|
distfiles="${PYPI_SITE}/P/PyYAML/PyYAML-${version}.tar.gz"
|
|
checksum=3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-yaml_package() {
|
|
pycompile_module="yaml"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|