# -*- 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.5.0
categories-append databases
platforms {darwin any}
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
checksums md5 63525f1936658d1a5a704ccc2941ad55 \
sha1 48d42cdb8d5836dc51f942d2f594e7542f73257f \
rmd160 4d058d3d553ad6addc530da7f5ce296ad1a0028b \
sha256 3db3ce7f9a95dfaf43876fa80b16bdbb9a04de0ba12042cab13e9f596fcffdbe \
size 20581
python.versions 310 311 312
if {${name} ne ${subport}} {
# ipython-sql looks styles up in prettytable's module __dict__, but
# prettytable >= 3.12 has them in the TableStyle enum and keeps the old
# names only as deprecated attributes, which a __dict__ lookup misses
# until they are first read, so queries raise KeyError. Use TableStyle
# when it exists, else the module constant. Upstream's GitHub README
# (newer than the 0.5.0 release) says future work goes into JupySQL.
patchfiles patch-prettytable-tablestyle.diff
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
}