From 9bec1c02054dcedcf6c0c59db7414f6c1244730b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Tue, 12 Oct 2021 19:29:34 +0200 Subject: [PATCH] python3-yamllint: update to 1.26.3. --- srcpkgs/python3-yamllint/template | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/srcpkgs/python3-yamllint/template b/srcpkgs/python3-yamllint/template index 201a7b34423..bc695c0842f 100644 --- a/srcpkgs/python3-yamllint/template +++ b/srcpkgs/python3-yamllint/template @@ -1,20 +1,26 @@ # Template file for 'python3-yamllint' pkgname=python3-yamllint -version=1.15.0 -revision=5 -wrksrc="yamllint-${version}" +version=1.26.3 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-pathspec python3-setuptools python3-yaml" -checkdepends="python3-pathspec python3-yaml" -short_desc="Python3 linter for YAML files" +checkdepends="python3-pytest python3-pathspec python3-yaml" +short_desc="Python 3 linter for YAML files" maintainer="Jan Christian Grünhage " license="GPL-3.0-or-later" homepage="https://github.com/adrienverge/yamllint" distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=9c27608ec61777f83c2cb29158b247a02079ad2aebb86522dd941397e3e78f6a +checksum=a12b134d360c8655c831c018162fd058dac308f62462b14c24125171c5822610 conflicts="python-yamllint>=0" -do_check() { - python3 setup.py test -} +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