32 lines
790 B
Bash
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
|
|
}
|
|
}
|