# -*- 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.91.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  7565f73fad8c45d9f39deac0511e67f65c4e2923c3a8872a638d9890e262da74 \
                    rmd160  f09bf92a47343a1b86b5e3efbf60a36a6da21f17 \
                    size    5710886

python.versions     39 310 311 312

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
}
