# -*- 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-aws-sam-translator
github.setup        awslabs serverless-application-model 1.101.0 v
github.tarball_from archive
revision            0

supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         {judaew @judaew} openmaintainer

description         AWS SAM Translator is a library that transform SAM templates into AWS CloudFormation templates
long_description    {*}${description}

checksums           sha256  07588b005b2a9f4e79d6f86d9a5f4464f6663e0c64701729897f90c397542a16 \
                    rmd160  0a859add0f2afb26f81edf0f65c8f6b143e635cc \
                    size    6002271

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-boto3 \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-pydantic

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

    test.run        yes
}
