# -*- 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.3.9
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  350da7130942b86415eebf899552edd57379ca07 \
                    sha256  7187f6371f38b89d8fb63c2c7c4233d9000fb53b460dae79e4a359df366cc3ed \
                    size    18028

python.versions     27 34 35 36 37

if {${name} ne ${subport}} {
    # upstream fix for Python 2 compatibility  issue reported in
    # https://trac.macports.org/ticket/57559
    patchfiles-append       patch-setup.py.diff

    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
}