# -*- 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-sqlparse
version             0.5.3
revision            0

license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer
description         Non-validating SQL parser
long_description    {*}${description} that provides support for parsing, splitting \
                    and formatting SQL statements.

python.versions     27 38 39 310 311 312 313
python.pep517_backend \
                    hatch

categories-append   textproc

homepage            https://pypi.python.org/pypi/${python.rootname}/

checksums           md5 9764a42264c9a3102526c87260e73d11 \
                    rmd160 790783b50a466ec1cfa76321e473f677735321c1 \
                    sha256 09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272

if {${name} ne ${subport}} {
    if {${python.version} eq 27} {
        version     0.3.1
        revision    0
        checksums   rmd160  b1a910193d4fd22679d0aea5c846a9a13e84ebef \
                    sha256  e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548 \
                    size    67572
        depends_build-append \
                    port:py${python.version}-setuptools
    }

    test.run        yes

    livecheck.type  none
}
