blob: 3563bfa113a890559873259ac827ddc53099072c [file] [log] [blame]
Andrew Geissler89770b02020-06-13 10:40:47 -05001SUMMARY = "Python library for displaying tabular data in a ASCII table format"
2HOMEPAGE = "http://code.google.com/p/prettytable"
3LICENSE = "BSD-3-Clause"
Andrew Geisslera2681d92020-10-16 10:17:07 -05004LIC_FILES_CHKSUM = "file://COPYING;md5=c9a6829fcd174d9535b46211917c7671"
Brad Bishop5f78ea12019-09-10 07:20:03 -04005
Andrew Geissler4b7c1152020-11-30 19:55:29 -06006SRC_URI[sha256sum] = "e37acd91976fe6119172771520e58d1742c8479703489321dc1d9c85e7259922"
Andrew Geissler89770b02020-06-13 10:40:47 -05007
8do_install_append() {
9 perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "*.txt" -o -name "PKG-INFO"`
10 for f in $perm_files; do
11 chmod 644 "${f}"
12 done
13}
14
15UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/PrettyTable/"
16UPSTREAM_CHECK_REGEX = "/PrettyTable/(?P<pver>(\d+[\.\-_]*)+)"
17
18BBCLASSEXTEND = "native nativesdk"
19inherit pypi ptest setuptools3
20
21SRC_URI += " \
22 file://run-ptest \
23"
24
Andrew Geisslera2681d92020-10-16 10:17:07 -050025DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
26
Andrew Geissler89770b02020-06-13 10:40:47 -050027RDEPENDS_${PN} += " \
28 ${PYTHON_PN}-math \
29 ${PYTHON_PN}-html \
Andrew Geisslerbbbd5f42020-10-30 15:42:48 -050030 ${PYTHON_PN}-wcwidth \
Andrew Geissler89770b02020-06-13 10:40:47 -050031"
32
33RDEPENDS_${PN}-ptest += " \
34 ${PYTHON_PN}-pytest \
35"
36
37do_install_ptest() {
Andrew Geissler4b7c1152020-11-30 19:55:29 -060038 cp -f ${S}/tests/test_prettytable.py ${D}${PTEST_PATH}/
Andrew Geissler89770b02020-06-13 10:40:47 -050039}