void-packages/srcpkgs/python3-ansible-compat/template

25 lines
844 B
Bash

# Template file for 'python3-ansible-compat'
pkgname=python3-ansible-compat
version=2.0.2
revision=1
wrksrc="${pkgname/python3-/}-${version}"
build_style=python3-pep517
make_install_target="ansible_compat-${version}-py3-none-any.whl"
hostmakedepends="python3-wheel python3-toml"
depends="python3-subprocess-tee"
short_desc="Python package for working with various version of ansible"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="MIT"
homepage="https://github.com/ansible-community/ansible-compat"
distfiles="${PYPI_SITE}/a/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz"
checksum=c651995dc323ef145bab857fee6540febc881fb71b7feafe8163d49e273163a5
post_patch() {
# scm versioning is broken in this release
vsed -e "/name =/a version = ${version}" -i setup.cfg
}
post_install() {
vlicense LICENSE
}