blob: 4be79077e354e66b52b0345bf0443ee348715645 [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 Bishop6e60e8b2018-02-01 10:27:11 -05004LIC_FILES_CHKSUM = "file://LICENSE;md5=d5ede125ed08d4fd14ec44d334bdb388"
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 Bishop316dfdd2018-06-25 12:45:53 -040013SRC_URI[md5sum] = "9f39d4d8f2b05f295fa0ff52475ec4f2"
14SRC_URI[sha256sum] = "e4d967371c5b6b2e67855066471d844c5d52d210c36c28d49a8507b96e2c5291"
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 \
42"
43
44inherit ptest
45
46do_install_ptest() {
47 install -d ${D}${PTEST_PATH}/tests
48 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
49 install -d ${D}${PTEST_PATH}/tests/hazmat
50 cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/
51}
52
53FILES_${PN}-dbg += " \
54 ${libdir}/${PYTHON_PN}2.7/site-packages/${SRCNAME}/hazmat/bindings/.debug \
55"
56
Patrick Williamsddad1a12017-02-23 20:36:32 -060057BBCLASSEXTEND = "native nativesdk"