blob: 4ba3e320fc9de142d9d0adb4de19c5606e720ae3 [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 Bishopd7bf8c12018-02-25 22:55:05 -050013SRC_URI[md5sum] = "24cbdab3fda22be31dd3aef2808f5d2f"
14SRC_URI[sha256sum] = "d04bb2425086c3fe86f7bc48915290b13e798497839fbb18ab7f6dffcf98cc3a"
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 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031 ${PYTHON_PN}-subprocess \
Patrick Williamsddad1a12017-02-23 20:36:32 -060032 ${PYTHON_PN}-setuptools \
33 ${PYTHON_PN}-six \
Patrick Williamsddad1a12017-02-23 20:36:32 -060034 ${PYTHON_PN}-threading \
35"
36
37RDEPENDS_${PN}-ptest += " \
38 ${PN} \
39 ${PYTHON_PN}-cryptography-vectors \
40 ${PYTHON_PN}-iso8601 \
41 ${PYTHON_PN}-pretend \
42 ${PYTHON_PN}-pytest \
43"
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
Brad Bishopd7bf8c12018-02-25 22:55:05 -050058LDFLAGS_append = " -pthread"
59
Patrick Williamsddad1a12017-02-23 20:36:32 -060060BBCLASSEXTEND = "native nativesdk"