# -*- 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.17.2
revision            0
categories-append   databases
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

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

homepage            https://alembic.sqlalchemy.org/

checksums           rmd160  0e593ce7c661e400c9a9ec1b5d3340ffaf9a0098 \
                    sha256  bbe9751705c5e0f14877f02d46c53d10885e377e3d90eda810a016f9baa19e8e \
                    size    1988064

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-sqlalchemy \
                        port:py${python.version}-mako \
                        port:py${python.version}-typing_extensions

    if {${python.version} < 311} {
        depends_lib-append  port:py${python.version}-tomli
    }
}
