Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 1 | DESCRIPTION = "A utility belt for advanced users of python-requests." |
| 2 | HOMEPAGE = "https://toolbelt.readthedocs.org" |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 3 | |
| 4 | LICENSE = "Apache-2.0" |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6f14302a4b4099009ab38b4dde5f1075" |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 6 | |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 7 | SRC_URI = "file://run-ptest \ |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 8 | file://090856f4159c40a2927fb88546419f2e1697ad5f.patch \ |
| 9 | file://720240501dca0b4eacc3295665d7ced8719e11d2.patch \ |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 10 | " |
| 11 | |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 12 | SRC_URI[sha256sum] = "7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6" |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 13 | |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 14 | inherit pypi setuptools3 ptest |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 15 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | RDEPENDS:${PN} += " \ |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 17 | ${PYTHON_PN}-requests (>=2.0.1) \ |
| 18 | " |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 19 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | RDEPENDS:${PN}-ptest += " \ |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 21 | ${PYTHON_PN}-pytest \ |
| 22 | ${PYTHON_PN}-betamax \ |
| 23 | ${PYTHON_PN}-mock \ |
| 24 | ${PYTHON_PN}-multiprocessing \ |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 25 | ${PYTHON_PN}-trustme \ |
Andrew Geissler | 748a483 | 2020-07-24 16:24:21 -0500 | [diff] [blame] | 26 | " |
| 27 | |
| 28 | do_install_ptest() { |
| 29 | install -d ${D}${PTEST_PATH}/tests |
| 30 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ |
| 31 | cp -rf ${S}/setup.py ${D}${PTEST_PATH} |
| 32 | # remove test test_multipart_encoder.py as it fails, |
| 33 | # downloaded file is not supported |
| 34 | rm -f ${D}${PTEST_PATH}/tests/test_multipart_encoder.py |
| 35 | } |