# -*- 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.22.0 v
github.tarball_from archive
revision            0

platforms           darwin
supported_archs     noarch
license             Apache-2
maintainers         nomaintainer

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

checksums           sha256  46b28186bc06ebe116e1e5671afd717a1097e1224adb7e66a20ece46dd4d9079 \
                    rmd160  6bf6139869e8e1d9f703e60119fc618037001d3d \
                    size    5092855

python.versions     37 38

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_run-append \
                    port:py${python.version}-boto3 \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-six

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

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.args       -o addopts=''
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
