diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2024-11-25 13:01:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-27 14:58:48 +0000 |
| commit | e7c6cf30de1f65aa9613248f40ec7c1f8fd94da9 (patch) | |
| tree | 6345741702a55ccde7e5efb70e596c373b2b3e12 /meta/recipes-devtools/python/python3-cryptography.bb | |
| parent | b29198442c6eb6fea0bcb0959c6e3077f174ae66 (diff) | |
| download | poky-e7c6cf30de1f65aa9613248f40ec7c1f8fd94da9.tar.gz | |
python3-cryptography(-vectors): upgrade 43.0.1 -> 43.0.3, ensure lockstep upgrades
(From OE-Core rev: 7a39814530cc0d6bfdd90382ad918c24aa345a0a)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-cryptography.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-cryptography.bb | 70 |
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..484dc1129a --- /dev/null +++ b/meta/recipes-devtools/python/python3-cryptography.bb | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | SUMMARY = "Provides cryptographic recipes and primitives to python developers" | ||
| 2 | HOMEPAGE = "https://cryptography.io/" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "Apache-2.0 | BSD-3-Clause" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \ | ||
| 6 | file://LICENSE.APACHE;md5=4e168cce331e5c827d4c2b68a6200e1b \ | ||
| 7 | file://LICENSE.BSD;md5=5ae30ba4123bc4f2fa49aa0b0dce887b \ | ||
| 8 | " | ||
| 9 | LDSHARED += "-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 | ||
| 13 | require python3-cryptography-common.inc | ||
| 14 | SRC_URI[sha256sum] = "315b9001266a492a6ff443b61238f956b214dbec9910a081ba5b6646a055a805" | ||
| 15 | |||
| 16 | SRC_URI += "file://0001-pyproject.toml-remove-benchmark-disable-option.patch \ | ||
| 17 | file://check-memfree.py \ | ||
| 18 | file://run-ptest \ | ||
| 19 | " | ||
| 20 | |||
| 21 | require ${BPN}-crates.inc | ||
| 22 | |||
| 23 | inherit pypi python_maturin cargo-update-recipe-crates pkgconfig | ||
| 24 | |||
| 25 | DEPENDS += " \ | ||
| 26 | python3-cffi-native \ | ||
| 27 | " | ||
| 28 | |||
| 29 | RDEPENDS:${PN} += " \ | ||
| 30 | python3-cffi \ | ||
| 31 | " | ||
| 32 | |||
| 33 | RDEPENDS:${PN}:append:class-target = " \ | ||
| 34 | python3-numbers \ | ||
| 35 | python3-threading \ | ||
| 36 | " | ||
| 37 | |||
| 38 | RDEPENDS:${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 | |||
| 52 | inherit ptest | ||
| 53 | |||
| 54 | do_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 | |||
| 66 | FILES:${PN}-dbg += " \ | ||
| 67 | ${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/hazmat/bindings/.debug \ | ||
| 68 | " | ||
| 69 | |||
| 70 | BBCLASSEXTEND = "native nativesdk" | ||
