# -*- 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-ipython-sql
version             0.4.1

categories-append   databases
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         RDBMS access via %%sql magic for IPython
long_description    \
    Introduces a %sql (or %%sql) magic. \
    Connect to a database, using SQLAlchemy connect strings, then issue SQL \
    commands within IPython or IPython Notebook.

homepage            https://github.com/catherinedevlin/ipython-sql
distname            ${python.rootname}-${version}
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}/

checksums           rmd160  b3fc72d17a182f7392c198a6e8ad7419a13d3116 \
                    sha256  3786344ce208a58047a4bcf43afd3c143d935a395c72ea849bf0e3fc24fad9e4 \
                    size    20709

python.versions     37 38 39 310

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

    depends_lib-append      port:py${python.version}-ipython \
                            port:py${python.version}-ipython_genutils \
                            port:py${python.version}-prettytable \
                            port:py${python.version}-sqlalchemy \
                            port:py${python.version}-sqlparse \
                            port:py${python.version}-six

    livecheck.type  none
}
