blob: 7768946211a70ee3ea61486baa758c32338383bb (
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
63
64
65
66
67
68
69
70
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=ansible-lint
pkgver=24.2.2
pkgrel=2
pkgdesc="check ansible playbooks"
url="https://github.com/ansible/ansible-lint"
arch="noarch"
options="!check"
license="MIT"
depends="
ansible-core
black
git
py3-ansible-compat
py3-filelock
py3-jinja2
py3-jsonschema
py3-packaging
py3-requests
py3-rich
py3-ruamel.yaml
py3-wcmatch
py3-yaml
python3
yamllint
"
makedepends="
py3-gpep517
py3-installer
py3-setuptools
py3-setuptools_scm
py3-wheel
"
checkdepends="
py3-flaky
py3-psutil
py3-pytest
py3-pytest-cov
py3-pytest-xdist
yamllint
"
subpackages="$pkgname-pyc"
source="ansible-lint-$pkgver.tar.gz::https://github.com/ansible-community/ansible-lint/archive/refs/tags/v$pkgver/ansible-lint-v$pkgver.tar.gz
no-version-check.patch
"
provides="py3-ansible-lint=$pkgver-r$pkgrel" # for backward compatibility
replaces="py3-ansible-lint" # for backward compatibility
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/ansible_lint-$pkgver-py3-none-any.whl
}
sha512sums="
e6c07336b2b202e9d541258e941ccc2076115420416f7e997b58ab69873d237c05d3fe5e8d7fd44c195aa83215eeb34d59899d9024867e6f6c8e828058c72716 ansible-lint-24.2.2.tar.gz
314fa02e0b30db8a8886824b0cce825ae4ffe227e2c5be434bc96e1c3ab8a6239548574d9ed0869def67b94c684a67abbf594f78aadbc64286fe8187502ba275 no-version-check.patch
"
|