# -*- 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-alembic
version             1.5.8
revision            0
categories-append   databases
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     27 35 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         A database migration tool for SQLAlchemy.
long_description    ${description}

homepage            http://bitbucket.org/zzzeek/alembic

checksums           rmd160  8665acc47598eaa6fde017b3140cec758270741f \
                    sha256  e27fd67732c97a1c370c33169ef4578cf96436fa0e7dcfaeeef4a917d0737d56 \
                    size    1154284

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

    if {${python.version} <= 35} {
        version             1.3.3
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  e42a3a976700ea2d457599b06f039ed5429d7402 \
                            sha256  d412982920653db6e5a44bfd13b1d0db5685cbaaccaf226195749c706e1e862a \
                            size    1072775
    }

    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-sqlalchemy \
                        port:py${python.version}-mako \
                        port:py${python.version}-editor \
                        port:py${python.version}-dateutil

    livecheck.type      none
}
