blob: dbbfe2cbe357adf7cbf9a7e9460bc7d5f99a01cf [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001SUMMARY = "Provides cryptographic recipes and primitives to python developers"
2HOMEPAGE = "https://cryptography.io/"
3LICENSE = "Apache-2.0 | BSD"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=097f805837700cfac572ac274cd38124"
5
6DEPENDS += " \
7 ${PYTHON_PN}-cffi \
8 ${PYTHON_PN}-cffi-native \
9 ${PYTHON_PN}-asn1crypto \
10 ${PYTHON_PN}-six \
11"
12
13SRC_URI[md5sum] = "a0f3f563ab1c5c3bc02fae8d4aa3ad16"
14SRC_URI[sha256sum] = "c132bab45d4bd0fff1d3fe294d92b0a6eb8404e93337b3127bdec9f21de117e6"
15
16RDEPENDS_${PN} += " \
17 ${PYTHON_PN}-cffi \
18 ${PYTHON_PN}-idna \
19 ${PYTHON_PN}-asn1crypto \
20 ${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 \
28 ${PYTHON_PN}-numbers \
29 ${PYTHON_PN}-asn1crypto \
30 ${PYTHON_PN}-pycparser \
31 ${PYTHON_PN}-setuptools \
32 ${PYTHON_PN}-six \
33 ${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 ${PYTHON_PN}-pytz \
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
58BBCLASSEXTEND = "native nativesdk"