1DESCRIPTION = "A utility belt for advanced users of python-requests."
2HOMEPAGE = "https://toolbelt.readthedocs.org"
3AUTHOR = "Ian Cordasco, Cory Benfield"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=71760e0f1dda8cff91b0bc9246caf571"
7
8SRC_URI = "file://run-ptest \
9           file://0001-Fix-collections.abc-deprecation-warning-in-downloadu.patch \
10           "
11
12SRC_URI[md5sum] = "b1509735c4b4cf95df2619facbc3672e"
13SRC_URI[sha256sum] = "968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0"
14
15inherit pypi setuptools3 ptest
16
17RDEPENDS:${PN} += " \
18    ${PYTHON_PN}-requests (>=2.0.1) \
19"
20
21RDEPENDS:${PN}-ptest += " \
22	${PYTHON_PN}-pytest \
23	${PYTHON_PN}-betamax \
24	${PYTHON_PN}-mock \
25	${PYTHON_PN}-multiprocessing \
26"
27
28do_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}
36