blob: 5acd02d67d362de1c098fdf662f841d74d9c0281 [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
Brad Bishopc342db32019-05-15 21:57:59 -04006LDSHARED += "-pthread"
7
Patrick Williamsddad1a12017-02-23 20:36:32 -06008DEPENDS += " \
9 ${PYTHON_PN}-cffi \
10 ${PYTHON_PN}-cffi-native \
Brad Bishop00111322018-04-01 22:23:53 -040011 ${PYTHON_PN}-asn1crypto \
Patrick Williamsddad1a12017-02-23 20:36:32 -060012 ${PYTHON_PN}-six \
13"
14
Brad Bishop2d39a062019-10-28 08:33:36 -040015SRC_URI[md5sum] = "77730058b556c6d9838679a94c6229ce"
16SRC_URI[sha256sum] = "3cda1f0ed8747339bbdf71b9f38ca74c7b592f24f65cdb3ab3765e4b02871651"
Patrick Williamsddad1a12017-02-23 20:36:32 -060017
18RDEPENDS_${PN} += " \
19 ${PYTHON_PN}-cffi \
20 ${PYTHON_PN}-idna \
Brad Bishop00111322018-04-01 22:23:53 -040021 ${PYTHON_PN}-asn1crypto \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022 ${PYTHON_PN}-setuptools \
23 ${PYTHON_PN}-six \
24"
25
26RDEPENDS_${PN}_class-target += " \
27 ${PYTHON_PN}-cffi \
28 ${PYTHON_PN}-idna \
Patrick Williamsddad1a12017-02-23 20:36:32 -060029 ${PYTHON_PN}-numbers \
Brad Bishop00111322018-04-01 22:23:53 -040030 ${PYTHON_PN}-asn1crypto \
Patrick Williamsddad1a12017-02-23 20:36:32 -060031 ${PYTHON_PN}-setuptools \
32 ${PYTHON_PN}-six \
Patrick Williamsddad1a12017-02-23 20:36:32 -060033 ${PYTHON_PN}-threading \
34"
35
36RDEPENDS_${PN}-ptest += " \
37 ${PN} \
38 ${PYTHON_PN}-cryptography-vectors \
39 ${PYTHON_PN}-iso8601 \
40 ${PYTHON_PN}-pretend \
41 ${PYTHON_PN}-pytest \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080042 ${PYTHON_PN}-pytz \
Patrick Williamsddad1a12017-02-23 20:36:32 -060043"
44
45inherit ptest
46
47do_install_ptest() {
48 install -d ${D}${PTEST_PATH}/tests
49 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
50 install -d ${D}${PTEST_PATH}/tests/hazmat
51 cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/
52}
53
54FILES_${PN}-dbg += " \
55 ${libdir}/${PYTHON_PN}2.7/site-packages/${SRCNAME}/hazmat/bindings/.debug \
56"
57
Patrick Williamsddad1a12017-02-23 20:36:32 -060058BBCLASSEXTEND = "native nativesdk"