void-packages/srcpkgs/python-yaml/template
Peter Bui 66ffc90ae2 python-yaml: update to 5.1.2.
Adopt package.
2019-09-08 11:03:06 +02:00

32 lines
790 B
Bash

# Template file for 'python-yaml'
pkgname=python-yaml
version=5.1.2
revision=1
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=01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4
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
}
}