# -*- 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-astor
version             0.7.1
platforms           darwin
license             BSD
maintainers         {emcrisostomo @emcrisostomo} openmaintainer

description         Read/rewrite/write Python ASTs
long_description    astor is a python library to easily manipulate Python \
                    source code via ASTs

homepage            https://github.com/berkerpeksag/astor
master_sites        pypi:a/astor
distname            astor-${version}

checksums           rmd160  c00e731d5db77b91acf9a550171f69b17e440734 \
                    sha256  95c30d87a6c2cf89aa628b87398466840f0ad8652f88eb173125a6df8533fb8d \
                    size    30633

python.versions     27 35 36 37

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

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