blob: 8a364116d5d43668379c0231ad8fc218e434538c [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001SUMMARY = "Provides cryptographic recipes and primitives to python developers"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002HOMEPAGE = "https://cryptography.io/"
Patrick Williamsddad1a12017-02-23 20:36:32 -06003LICENSE = "Apache-2.0 | BSD"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004LIC_FILES_CHKSUM = "file://LICENSE;md5=097f805837700cfac572ac274cd38124"
Patrick Williamsddad1a12017-02-23 20:36:32 -06005
6DEPENDS += " \
7 ${PYTHON_PN}-cffi \
8 ${PYTHON_PN}-cffi-native \
Brad Bishop00111322018-04-01 22:23:53 -04009 ${PYTHON_PN}-asn1crypto \
Patrick Williamsddad1a12017-02-23 20:36:32 -060010 ${PYTHON_PN}-six \
11"
12
Brad Bishop34ae6002019-04-08 15:21:03 -040013SRC_URI[md5sum] = "401cc8268f89496643da3f7a48eb4e8e"
14SRC_URI[sha256sum] = "26c821cbeb683facb966045e2064303029d572a87ee69ca5a1bf54bf55f93ca6"
Patrick Williamsddad1a12017-02-23 20:36:32 -060015
16RDEPENDS_${PN} += " \
17 ${PYTHON_PN}-cffi \
18 ${PYTHON_PN}-idna \
Brad Bishop00111322018-04-01 22:23:53 -040019 ${PYTHON_PN}-asn1crypto \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020 ${PYTHON_PN}-setuptools \
21 ${PYTHON_PN}-six \
22"
23
24RDEPENDS_${PN}_class-target += " \
25 ${PYTHON_PN}-cffi \
26 ${PYTHON_PN}-idna \
Patrick Williamsddad1a12017-02-23 20:36:32 -060027 ${PYTHON_PN}-numbers \
Brad Bishop00111322018-04-01 22:23:53 -040028 ${PYTHON_PN}-asn1crypto \
Patrick Williamsddad1a12017-02-23 20:36:32 -060029 ${PYTHON_PN}-setuptools \
30 ${PYTHON_PN}-six \
Patrick Williamsddad1a12017-02-23 20:36:32 -060031 ${PYTHON_PN}-threading \
32"
33
34RDEPENDS_${PN}-ptest += " \
35 ${PN} \
36 ${PYTHON_PN}-cryptography-vectors \
37 ${PYTHON_PN}-iso8601 \
38 ${PYTHON_PN}-pretend \
39 ${PYTHON_PN}-pytest \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080040 ${PYTHON_PN}-pytz \
Patrick Williamsddad1a12017-02-23 20:36:32 -060041"
42
43inherit ptest
44
45do_install_ptest() {
46 install -d ${D}${PTEST_PATH}/tests
47 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
48 install -d ${D}${PTEST_PATH}/tests/hazmat
49 cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/
50}
51
52FILES_${PN}-dbg += " \
53 ${libdir}/${PYTHON_PN}2.7/site-packages/${SRCNAME}/hazmat/bindings/.debug \
54"
55
Patrick Williamsddad1a12017-02-23 20:36:32 -060056BBCLASSEXTEND = "native nativesdk"