# -*- 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        encode databases 0.4.2
revision            0
name                py-${github.project}
categories-append   devel

license             MIT
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch

description         Async database support for Python.

long_description    Databases gives you simple asyncio support for a \
                    range of databases. It allows you to make queries \
                    using the powerful SQLAlchemy Core expression \
                    language, and provides support for PostgreSQL, \
                    MySQL, and SQLite. Databases is suitable for \
                    integrating against any async Web framework, such \
                    as Starlette, Sanic, Responder, Quart, aiohttp, \
                    Tornado, or FastAPI.

checksums           rmd160  468ee122259d46fd1c771e86c55f75cc78919c22 \
                    sha256  c8b91b98f148313bbe2642d6676f44300a07d635b3d494a016a79d6465657c94 \
                    size    26501

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-aiomysql \
                    port:py${python.version}-aiopg \
                    port:py${python.version}-aiosqlite \
                    port:py${python.version}-asyncpg \
                    port:py${python.version}-sqlalchemy

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

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

    livecheck.type  none
}
