# Template file for 'yq'
pkgname=yq
version=3.2.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools_scm"
depends="python3-yaml python3-xmltodict python3-tomlkit python3-argcomplete jq"
checkdepends="${depends}"
short_desc="Command-line YAML processor written in Python that wraps around jq"
maintainer="Ishaan Bhimwal <ishaanbhimwal@protonmail.com>"
license="Apache-2.0"
homepage="https://github.com/kislyuk/yq"
changelog="https://raw.githubusercontent.com/kislyuk/yq/develop/Changes.rst"
distfiles="${PYPI_SITE}/y/yq/yq-${version}.tar.gz"
checksum=e04dfc8670fcba5bba75e2a24940a544aa8c2789cd4c5171241a1275c8ab2f57

do_check() {
	python3 test/test.py
}

post_install() {
	mv "${DESTDIR}/usr/bin/xq" "${DESTDIR}/usr/bin/yq-xq"
}
