# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0
PortGroup           github 1.0

name                py-cfn-lint
github.setup        aws-cloudformation cfn-python-lint 1.51.5 v
github.tarball_from archive
revision            0

platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {judaew @judaew} openmaintainer

description         Checks cloudformation for practices and behaviour that \
                    could potentially be improved
long_description    {*}${description}

checksums           sha256  f85a0968f292b7461d92cb0852ca1cb32c8c268c9c64b396367c70f2c4eeaa47 \
                    rmd160  33e0c7a0c359706723f135eeeb7bc6723a8a94b2 \
                    size    4499080

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-yaml \
                    port:py${python.version}-aws-sam-translator \
                    port:py${python.version}-jsonpatch \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-networkx \
                    port:py${python.version}-junit-xml \
                    port:py${python.version}-jschema_to_python \
                    port:py${python.version}-sarif-om \
                    port:py${python.version}-sympy \
                    port:py${python.version}-regex

    depends_test-append \
                    port:py${python.version}-mock

    test.run        yes
}

github.livecheck.regex  {([0-9.]+)}
