Date: Saturday, March 11, 2023 @ 11:12:33
Author: yan12125
Revision: 1418670
archrelease: copy trunk to community-testing-any
Added:
python-cfn-lint/repos/community-testing-any/
python-cfn-lint/repos/community-testing-any/PKGBUILD
(from rev 1418669, python-cfn-lint/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-cfn-lint/repos/community-testing-any/PKGBUILD (from rev 1418669,
python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2023-03-11 11:12:33 UTC (rev 1418670)
@@ -0,0 +1,44 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=python-cfn-lint
+# https://github.com/aws-cloudformation/cfn-lint/blob/main/CHANGELOG.md
+pkgver=0.74.1
+pkgrel=1
+pkgdesc='CloudFormation Linter'
+arch=(any)
+url='https://github.com/aws-cloudformation/cfn-lint'
+license=('custom:MIT No Attribution')
+depends=(python python-yaml python-aws-sam-translator
+ python-jsonpatch python-jsonschema python-networkx
+ python-junit-xml python-jschema-to-python python-sarif-om)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-pydot)
+optdepends=(
+ 'python-pydot: for building graphs from templates'
+)
+source=("https://github.com/aws-cloudformation/cfn-lint/archive/v$pkgver/cfn-lint-$pkgver.tar.gz")
+sha256sums=('8caa2808bd786f5416fd2078bc82af50d8c33dea10a9f6c1ef0ce6fc4ae57742')
+
+build() {
+ cd cfn-lint-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd cfn-lint-$pkgver
+
+ # Tests in test/integration need the cfn-lint binary
+ python setup.py install_scripts --install-dir="$srcdir"/tmp_install
+
+ export PYTHONPATH="$PWD/src"
+ export PATH="$PATH:$srcdir/tmp_install"
+ # test_update_docs requires cfn-lint as a git repo
+ pytest test -k 'not test_update_docs'
+}
+
+package() {
+ cd cfn-lint-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}