summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-cryptography.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-cryptography.bb')
-rw-r--r--meta/recipes-devtools/python/python3-cryptography.bb70
1 files changed, 70 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-cryptography.bb b/meta/recipes-devtools/python/python3-cryptography.bb
new file mode 100644
index 0000000000..f41e13f4a1
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-cryptography.bb
@@ -0,0 +1,70 @@
1SUMMARY = "Provides cryptographic recipes and primitives to python developers"
2HOMEPAGE = "https://cryptography.io/"
3SECTION = "devel/python"
4LICENSE = "Apache-2.0 | BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \
6 file://LICENSE.APACHE;md5=4e168cce331e5c827d4c2b68a6200e1b \
7 file://LICENSE.BSD;md5=5ae30ba4123bc4f2fa49aa0b0dce887b \
8 "
9LDSHARED += "-pthread"
10
11# NOTE: Make sure to keep this recipe at the same version as python3-cryptography-vectors
12# Upgrade both recipes at the same time
13require python3-cryptography-common.inc
14SRC_URI[sha256sum] = "7405ade85c83c37682c8fe65554759800a4a8c54b2d96e0f8ad114d31b808d57"
15
16SRC_URI += "file://0001-pyproject.toml-remove-benchmark-disable-option.patch \
17 file://check-memfree.py \
18 file://run-ptest \
19 "
20
21require ${BPN}-crates.inc
22
23inherit pypi python_maturin cargo-update-recipe-crates pkgconfig
24
25DEPENDS += " \
26 python3-cffi-native \
27"
28
29RDEPENDS:${PN} += " \
30 python3-cffi \
31"
32
33RDEPENDS:${PN}:append:class-target = " \
34 python3-numbers \
35 python3-threading \
36"
37
38RDEPENDS:${PN}-ptest += " \
39 python3-bcrypt \
40 python3-cryptography-vectors (= ${PV}) \
41 python3-hypothesis \
42 python3-iso8601 \
43 python3-mmap \
44 python3-pretend \
45 python3-psutil \
46 python3-pytest \
47 python3-unittest-automake-output \
48 python3-pytest-subtests \
49 python3-pytz \
50"
51
52inherit ptest
53
54do_install_ptest() {
55 install -D ${UNPACKDIR}/check-memfree.py ${D}${PTEST_PATH}/
56 install -d ${D}${PTEST_PATH}/tests
57 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
58 # remove test_x509.py as it needs benchmark and we don't
59 # want to introduce the benchmark dependency
60 rm -rf ${D}${PTEST_PATH}/tests/bench/test_x509.py
61 install -d ${D}${PTEST_PATH}/tests/hazmat
62 cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/
63 cp -r ${S}/pyproject.toml ${D}${PTEST_PATH}/
64}
65
66FILES:${PN}-dbg += " \
67 ${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/hazmat/bindings/.debug \
68"
69
70BBCLASSEXTEND = "native nativesdk"