void-packages/srcpkgs/python-yamllint/template
maxice8 acca386418 python-yamllint: update to 1.11.0.
Closes: #11792 [via git-merge-pr]
2018-03-06 22:22:38 -08:00

34 lines
1,013 B
Bash

# Template file for 'python-yamllint'
pkgname=python-yamllint
version=1.11.0
revision=1
noarch=yes
wrksrc="yamllint-${version}"
build_style=python-module
pycompile_module="yamllint"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-yaml python-pathspec"
checkdepends="python3-yaml python3-pathspec"
short_desc="Python2 linter for YAML files"
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
homepage="https://github.com/adrienverge/yamllint"
license="GPL-3"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=55916772ada4507fea84d09f8ca7c24b2e0fc8dea6c1f2caf8328c72cc81ae6e
alternatives="yamllint:yamllint:/usr/bin/yamllint2"
do_check() {
python3 setup.py test
}
python3-yamllint_package() {
noarch=yes
depends="python3-setuptools python3-yaml python3-pathspec"
pycompile_module="yamllint"
short_desc="${short_desc/Python2/Python3}"
alternatives="yamllint:yamllint:/usr/bin/yamllint3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
}
}