# -*- 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 0.24.3 v
revision            0

platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

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

checksums           sha256  83b3cb310fe4867a95db2c01f880db19e55d933ae1ad815005e61508de2115f7 \
                    rmd160  103398d03391afa068fd256554d94ba0ec0b1132 \
                    size    3404450

python.versions     37

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-setuptools

    depends_run-append \
                    port:py${python.version}-aws-sam-translator \
                    port:py${python.version}-jsonpatch \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-yaml \
                    port:py${python.version}-requests \
                    port:py${python.version}-six

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

    test.run        yes
    test.env-append PYTHONPATH=build/lib
    test.cmd        py.test-${python.branch}
    test.target     test

    livecheck.type  none
}