void-packages/srcpkgs/python3-yamllint/template

28 lines
1.2 KiB
Bash

# Template file for 'python3-yamllint'
pkgname=python3-yamllint
version=1.27.1
revision=1
wrksrc="${pkgname/python3-/}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-pathspec python3-setuptools python3-yaml"
checkdepends="python3-pytest python3-pathspec python3-yaml"
short_desc="Python 3 linter for YAML files"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="GPL-3.0-or-later"
homepage="https://github.com/adrienverge/yamllint"
changelog="https://github.com/adrienverge/yamllint/raw/master/CHANGELOG.rst"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=71195467c92705121e7bea72b920d56747d1e7f1c36374943ab65ac534ec7856
conflicts="python-yamllint>=0"
case "$XBPS_TARGET_MACHINE" in
# These test cases require locale support, which musl libc lacks, so these tests are expected to fail
# on our musl libc targets. Therefore, we deselect them to ignore their failures.
*-musl)
make_check_args="--deselect tests/test_cli.py::CommandLineTestCase::test_run_with_locale
--deselect tests/rules/test_key_ordering.py::KeyOrderingTestCase::test_locale_accents
--deselect tests/rules/test_key_ordering.py::KeyOrderingTestCase::test_locale_case"
;;
esac