# -*- 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-prettytable
version 3.18.0
platforms {darwin any}
supported_archs noarch
license BSD
maintainers {petr @petrrr} openmaintainer
description A simple Python library for easily displaying tabular \
data in a visually appealing ASCII table format.
long_description PrettyTable is a simple Python library designed to make \
it quick and easy to represent tabular data in visually \
appealing ASCII tables. It was inspired by the ASCII \
tables used in the PostgreSQL shell psql. PrettyTable \
allows for selection of which columns are to be printed, \
independent alignment of columns (left or right justified \
or centred) and printing of "sub-tables" by specifying a \
row range.
categories-append textproc
homepage https://github.com/prettytable/prettytable
checksums md5 74b207a4799266653b11a5530f1d5a77 \
sha1 482ea406fc29807cfeea1a1f1a9b3ddf00449cbc \
rmd160 674fffd472f4a455b6dbaf291c8fb79b1acac548 \
sha256 439217116152244369caf3d9f1caf2f9fe29b03bd79e88d2928c8e718c95d680 \
size 76373
python.versions 310 311 312 313 314 315
python.pep517_backend hatch
if {$subport ne $name} {
depends_build-append \
port:py${python.version}-hatch-vcs
depends_lib-append \
port:py${python.version}-wcwidth
depends_test-append \
port:py${python.version}-pytest-lazy-fixtures
test.run yes
test.env-append PYTHONPATH=${worksrcpath}/src
post-destroot {
set dest_doc ${destroot}${prefix}/share/doc/${subport}
xinstall -d ${dest_doc}
xinstall -m 0644 -W ${worksrcpath} README.md LICENSE \
CHANGELOG.md ${dest_doc}
}
}