# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        alex pretend 1.0.9 v
name                py-pretend
platforms           darwin
license             BSD
maintainers         {yan12125 @yan12125} openmaintainer

description         A library for stubbing in Python
long_description    ${description}

# Switched from pypi to GitHub tarball
dist_subdir         ${name}/${version}_1

checksums           rmd160  9aa242c5cbcba266780dbeae50a5ca55cb72a91f \
                    sha256  65e490da33638cd3d6487b775c9dd3477d339873e73f8699979738d8d19124ad \
                    size    5651

python.versions     27 36 37

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

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

    test.run            yes
    test.cmd            py.test-${python.branch}
    test.target

    livecheck.type      none
} else {
    livecheck.type      pypi
}