diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-requests-toolbelt_0.10.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-requests-toolbelt_0.10.1.bb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-requests-toolbelt_0.10.1.bb b/meta-python/recipes-devtools/python/python3-requests-toolbelt_0.10.1.bb new file mode 100644 index 0000000000..b2678952cd --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-requests-toolbelt_0.10.1.bb | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | DESCRIPTION = "A utility belt for advanced users of python-requests." | ||
| 2 | HOMEPAGE = "https://toolbelt.readthedocs.org" | ||
| 3 | AUTHOR = "Ian Cordasco, Cory Benfield" | ||
| 4 | |||
| 5 | LICENSE = "Apache-2.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6f14302a4b4099009ab38b4dde5f1075" | ||
| 7 | |||
| 8 | SRC_URI = "file://run-ptest \ | ||
| 9 | " | ||
| 10 | |||
| 11 | SRC_URI[sha256sum] = "62e09f7ff5ccbda92772a29f394a49c3ad6cb181d568b1337626b2abb628a63d" | ||
| 12 | |||
| 13 | inherit pypi setuptools3 ptest | ||
| 14 | |||
| 15 | RDEPENDS:${PN} += " \ | ||
| 16 | ${PYTHON_PN}-requests (>=2.0.1) \ | ||
| 17 | " | ||
| 18 | |||
| 19 | RDEPENDS:${PN}-ptest += " \ | ||
| 20 | ${PYTHON_PN}-pytest \ | ||
| 21 | ${PYTHON_PN}-betamax \ | ||
| 22 | ${PYTHON_PN}-mock \ | ||
| 23 | ${PYTHON_PN}-multiprocessing \ | ||
| 24 | " | ||
| 25 | |||
| 26 | do_install_ptest() { | ||
| 27 | install -d ${D}${PTEST_PATH}/tests | ||
| 28 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 29 | cp -rf ${S}/setup.py ${D}${PTEST_PATH} | ||
| 30 | # remove test test_multipart_encoder.py as it fails, | ||
| 31 | # downloaded file is not supported | ||
| 32 | rm -f ${D}${PTEST_PATH}/tests/test_multipart_encoder.py | ||
| 33 | } | ||
