# -*- 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.104.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  f3e5837205f9270f3a5078ec8c878bef081fc61968eaa4f078df52057f2fe46c \
                    rmd160  684a6b584510f515ff5ff984e787d8c7976785b2 \
                    size    6073035

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
}
