# -*- 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.107.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  5ac688ab337e8ed9dec932a61448b1ca2bb73b19de53deaeb4a08168729f91d2 \
                    rmd160  69a14ad0b629deace6c5fc83184b0bfc360f166d \
                    size    6828250

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
}
