aboutsummaryrefslogtreecommitdiffstats
path: root/community/ansible-lint/APKBUILD
blob: ba8b8ab07724f6f6cce0e7fd58cb0762c0a8e6e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible-lint
pkgver=6.2.1
pkgrel=0
pkgdesc="check ansible playbooks"
url="https://github.com/ansible/ansible-lint"
arch="noarch"
options="!check"
license="MIT"
depends="
	python3
	ansible-core
	py3-enrich
	py3-packaging
	py3-rich
	py3-ruamel.yaml
	py3-tenacity
	py3-tomli
	py3-typing-extensions
	py3-wcmatch
	py3-yaml
	py3-ansible-compat
	py3-resolvelib<0.6.0
	py3-resolvelib>=0.5.4
	"
makedepends="
	py3-build
	py3-installer
	py3-setuptools
	py3-wheel
	py3-setuptools_scm
	"
checkdepends="
	py3-flaky
	py3-psutil
	py3-pytest
	py3-pytest-cov
	py3-pytest-xdist
	yamllint
	"
source="https://github.com/ansible-community/ansible-lint/archive/refs/tags/v$pkgver/ansible-lint-v$pkgver.tar.gz"
provides="py3-ansible-lint=$pkgver-r$pkgrel" # for backward compatibility
replaces="py3-ansible-lint" # for backward compatibility

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
	python3 -m build --skip-dependency-check --no-isolation --wheel
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/ansible_lint-$pkgver-py3-none-any.whl
}

sha512sums="
fb3eb8485078f4b426e11dc2b67ef2987640a97552979ef7b192980f750fb798ceab843d95c5e34d0c988cd312a2b5e7b4d58d84c1c5b4f385840ff3a58ac183  ansible-lint-v6.2.1.tar.gz
"