void-packages/srcpkgs/python3-ansible-lint/template
2021-10-23 22:37:29 +02:00

27 lines
1 KiB
Bash

# Template file for 'python3-ansible-lint'
pkgname=python3-ansible-lint
version=5.2.1
revision=1
wrksrc="${pkgname/python3-/}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools_scm python3-wheel"
depends="ansible-core python3-yamllint python3-six python3-yaml python3-ruamel.yaml python3-tenacity python3-enrich python3-wcmatch"
short_desc="Linter for Ansible files"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="MIT"
homepage="https://github.com/ansible-community/ansible-lint"
distfiles="${PYPI_SITE}/a/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz"
checksum=d64aca59c8d896541d379b9205b2126b851088aab0a2c2cab19ff74b184cdf1c
# Tests are currently broken for ansible on python 3.10
# See https://github.com/ansible/ansible/issues/74658
# and https://github.com/ansible/ansible/issues/74660
make_check=no
post_patch() {
# scm versioning is broken in this release
vsed -e "/name =/a version = ${version}" -e "/setuptools_scm/d" -i setup.cfg
}
post_install() {
vlicense LICENSE
}