# -*- 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

name                py-serverlessrepo
version             0.1.10
revision            0

homepage            \
    https://github.com/amazon-archives/aws-serverlessrepo-python

description         \
    A Python library with convenience helpers for working with the AWS \
    Serverless Application Repository.

long_description    {*}${description}

categories-append   devel
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
supported_archs     noarch

checksums           rmd160  c916135e155a24ada4bdc3a04134e1a54a2f1f15 \
                    sha256  671f48038123f121437b717ed51f253a55775590f00fbab6fbc6a01f8d05c017 \
                    size    29941

python.versions     39 310

if {${name} ne ${subport}} {

    depends_build-append    port:py${python.version}-setuptools

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

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

    test.run                yes
    test.env-append         PYTHONPATH=${worksrcpath}/build/lib
    test.cmd                py.test-${python.branch}
    test.pre_args           {}

    livecheck.type  none
}
