25 lines
1.2 KiB
Bash
25 lines
1.2 KiB
Bash
# Template file for 'python3-yamllint'
|
|
pkgname=python3-yamllint
|
|
version=1.35.1
|
|
revision=1
|
|
build_style=python3-pep517
|
|
hostmakedepends="python3-setuptools python3-wheel"
|
|
depends="python3-pathspec python3-yaml"
|
|
checkdepends="${depends} python3-pytest-xdist"
|
|
short_desc="Python 3 linter for YAML files"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/adrienverge/yamllint"
|
|
changelog="https://github.com/adrienverge/yamllint/raw/master/CHANGELOG.rst"
|
|
distfiles="https://github.com/adrienverge/yamllint/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=b4acd28852ba54b698cd469b4d38231490dfbb8f69e6156e83dff1323f5de549
|
|
conflicts="python-yamllint>=0"
|
|
|
|
# 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.
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
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"
|
|
fi
|