blob: dbbfe2cbe357adf7cbf9a7e9460bc7d5f99a01cf [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 Bishop1a4b7ee2018-12-16 17:11:34 -080013SRC_URI[md5sum] = "a0f3f563ab1c5c3bc02fae8d4aa3ad16"
14SRC_URI[sha256sum] = "c132bab45d4bd0fff1d3fe294d92b0a6eb8404e93337b3127bdec9f21de117e6"
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}-pycparser \
21 ${PYTHON_PN}-setuptools \
22 ${PYTHON_PN}-six \
23"
24
25RDEPENDS_${PN}_class-target += " \
26 ${PYTHON_PN}-cffi \
27 ${PYTHON_PN}-idna \
Patrick Williamsddad1a12017-02-23 20:36:32 -060028 ${PYTHON_PN}-numbers \
Brad Bishop00111322018-04-01 22:23:53 -040029 ${PYTHON_PN}-asn1crypto \
Patrick Williamsddad1a12017-02-23 20:36:32 -060030 ${PYTHON_PN}-pycparser \
31 ${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"