1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/ansible-lint/APKBUILD
2023-03-03 23:53:39 +01:00

63 lines
1.3 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible-lint
pkgver=6.14.0
pkgrel=0
pkgdesc="check ansible playbooks"
url="https://github.com/ansible/ansible-lint"
arch="noarch"
options="!check"
license="MIT"
depends="
ansible-core
git
py3-ansible-compat
py3-filelock
py3-jinja2
py3-jsonschema
py3-packaging
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
"
source="ansible-lint-$pkgver.tar.gz::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
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="
56e5b43c0d26925ae17e081f27b7e037106c033c189dc03b9e7faac51a320174e594103bff2fe54f6cabcef9b433a2c9d3c5d91387439b08d72e2ff9265fbd1e ansible-lint-6.14.0.tar.gz
"