blob: fe7206255cc001174b4f953c64eddeb86673c5af [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 Geissler32b11992021-03-31 13:37:05 -05006SRC_URI[sha256sum] = "5882ed9092b391bb8f6e91f59bcdbd748924ff556bb7c634089d5519be87baa0"
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}