vp-build/srcpkgs/python-yaml/template

33 lines
788 B
Bash

# Template file for 'python-yaml'
pkgname=python-yaml
version=5.2
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="Peter Bui <pbui@github.bx612.space>"
license="MIT"
homepage="http://pyyaml.org/wiki/PyYAML"
distfiles="${PYPI_SITE}/P/PyYAML/PyYAML-${version}.tar.gz"
checksum=c0ee8eca2c582d29c3c2ec6e2c4f703d1b7f1fb10bc72317355a746057e7346c
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
}
}