Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame^] | 1 | SUMMARY = "World timezone definitions, modern and historical" |
| 2 | HOMEPAGE = "http://pythonhosted.org/pytz" |
| 3 | LICENSE = "MIT" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4878a915709225bceab739bdc2a18e8d" |
| 5 | |
| 6 | inherit pypi setuptools3 ptest |
| 7 | |
| 8 | SRC_URI[md5sum] = "c3d84a465fc56a4edd52cca8873ac0df" |
| 9 | SRC_URI[sha256sum] = "b02c06db6cf09c12dd25137e563b31700d3b80fcc4ad23abb7a315f2789819be" |
| 10 | |
| 11 | RDEPENDS_${PN}_class-target += "\ |
| 12 | ${PYTHON_PN}-datetime \ |
| 13 | ${PYTHON_PN}-doctest \ |
| 14 | ${PYTHON_PN}-io \ |
| 15 | ${PYTHON_PN}-pickle \ |
| 16 | ${PYTHON_PN}-pprint \ |
| 17 | ${PYTHON_PN}-threading \ |
| 18 | " |
| 19 | |
| 20 | BBCLASSEXTEND = "native nativesdk" |
| 21 | |
| 22 | SRC_URI += " \ |
| 23 | file://run-ptest \ |
| 24 | " |
| 25 | |
| 26 | RDEPENDS_${PN}-ptest += " \ |
| 27 | ${PYTHON_PN}-pytest \ |
| 28 | " |
| 29 | |
| 30 | do_install_ptest() { |
| 31 | install -d ${D}${PTEST_PATH}/pytz |
| 32 | install -d ${D}${PTEST_PATH}/pytz/tests |
| 33 | cp -rf ${S}/pytz/tests/* ${D}${PTEST_PATH}/pytz/tests/ |
| 34 | cp -f ${S}/README.txt ${D}${PTEST_PATH}/ |
| 35 | |
| 36 | } |