# -*- 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.106.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  eed90ce89bcc6f365b7f16ed72cb8bc9509c3b447ec57b78a8522ea99612db6d \
                    rmd160  fa840b6b7c56d13252d73a5f5fbbda42dce66f24 \
                    size    6075155

python.versions     310 311 312 313 314

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
}
