# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=yamllint
pkgver=1.37.0
pkgrel=0
pkgdesc="A linter for YAML files"
url="https://github.com/adrienverge/yamllint"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-pathspec py3-yaml"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://github.com/adrienverge/yamllint/archive/v$pkgver/yamllint-$pkgver.tar.gz
	skip-locale-tests.patch"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m unittest discover
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
eee290bb42fc8385ff40906e22d0ba33d76b6d12835308d3391499d79e5fed94966b8ffd3ccf0e2bdc6c05d9e26b2f2202b5a54e8deb949b8fa09a5baa1697fe  yamllint-1.37.0.tar.gz
abf8e7089ffa29efd8cea682d7b1178a3a93a5f1158bdf6d058437308e2dce33b72278a303b5a1b9e7dc57040c414ba7945c19b0500788cd3426c9192bce5440  skip-locale-tests.patch
"
