void-packages/srcpkgs/python-yaml/template
Peter Bui e2660d1c67 python-yaml: update to 5.3.
- Remove pycompile_module (xlint)
2020-02-16 09:24:07 +01:00

30 lines
739 B
Bash

# Template file for 'python-yaml'
pkgname=python-yaml
version=5.3
revision=1
wrksrc="PyYAML-${version}"
build_style=python-module
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=e9f45bd5b92c7974e59bcd2dcc8631a6b6cc380a904725fce7bc08872e691615
do_check() {
python3 setup.py test
}
post_install() {
vlicense LICENSE
}
python3-yaml_package() {
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}