# -*- 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        aio-libs aiomysql 0.0.21 v
name                py-${github.project}
revision            0
categories-append   devel

license             MIT
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch

description         MySQL driver for asyncio.

long_description    aiomysql is a "driver" for accessing a MySQL \
                    database from the asyncio (PEP-3156/tulip) \
                    framework. It depends on and reuses most parts of \
                    PyMySQL . aiomysql tries to be like awesome aiopg \
                    library and preserve same api, look and feel.

checksums           rmd160  70691cfc7b3e9c6c70f1717fed9708a671d29a5e \
                    sha256  8bdec926b87c9f5bc8984a8c4f2b9330bbff228e9e39e5f25a801aee87457981 \
                    size    97079

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-pymysql

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

    pre-test {
        test.env-append \
                    PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
        # See https://docs.pytest.org/en/stable/pythonpath.html
        delete ${test.dir}/${test.target}/__init__.py
    }

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

    livecheck.type  none
}
