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

47 lines
1.3 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible-lint
pkgver=4.3.7
pkgrel=4
pkgdesc="check ansible playbooks"
url="https://github.com/ansible/ansible-lint"
# Disable for now, fails with new setuptools
#arch="noarch"
options="!check" # see https://gitlab.alpinelinux.org/alpine/aports/-/issues/12225
license="MIT"
depends="
ansible
py3-rich
py3-yaml
py3-six
py3-ruamel.yaml
py3-typing-extensions
"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"
source="https://files.pythonhosted.org/packages/source/a/ansible-lint/ansible-lint-$pkgver.tar.gz"
provides="py3-ansible-lint=$pkgver-r$pkgrel" # for backward compatibility
replaces="py3-ansible-lint" # for backward compatibility
prepare() {
default_prepare
# stop setuptools from using the scm version which doesn't exist in this context
sed -e "/^\[metadata\]/a version = $pkgver" \
-e '/^use_scm_version/d' \
-e '/setuptools_scm/d' \
-i setup.cfg
}
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="b882c8b8edc37e530052f7d6bf97e6c48f4a13fa6c6f6373c9fcafb7ffe2fc7dcfc5938ae6c61fd832a9ea989bd0a23f68f93f6339c9e52e9100875f5ebd69af ansible-lint-4.3.7.tar.gz"