diff options
| author | Tim Orling <ticotimo@gmail.com> | 2022-01-15 21:29:04 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-01-18 08:59:58 -0800 |
| commit | 8589b69f9ff283ec3ae990466bed3b84702eb8e1 (patch) | |
| tree | 9fd5a6bfa76ae8c439b1b1afed94d770811d944b /meta-python/recipes-devtools/python/python3-cryptography_3.3.2.bb | |
| parent | 6fecc883380c4dcfbb642464061aa4c51a4626ee (diff) | |
| download | meta-openembedded-8589b69f9ff283ec3ae990466bed3b84702eb8e1.tar.gz | |
python3-cryptography: upgrade 3.3.2 -> 36.0.1
See https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst#3601---2021-12-14
for changes
* Add PSF-2.0 license and explicitly add checksums for the LICENSE files that
are packaged.
* RDEPENDS on python3-hypothesis (in oe-core) for ptest so we can drop the
patch for skipping.
* Drop backported patch for openssl3 support.
* inherit new setuptools_rust class (which inherits new pyo3 class, which
inherits cargo and python3-dir).
* RDEPENDS on python3-pytest-subtests for ptest
* Copy pyproject.toml for ptest as it defines the pytest.marker(s) needed
* Cleanup and alphabetize the RDEPENDS
* Use 'cargo bitbake' to generate the crate:// SRC_URIs
- Needed some hacks to the Cargo.toml in src/rust/ to make this work (probably
only package.repository was strictly required):
[package]
description = "cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, message digests, and key derivation functions."
homepage = "https://github.com/pyca/cryptography"
repository = "https://github.com/pyca/cryptography"
* Add patches to src/rust/Cargo.toml to fix cargo errors including pem version
* Add check-memfree.py to ptest to check for sufficient free memory
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-cryptography_3.3.2.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-cryptography_3.3.2.bb | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/meta-python/recipes-devtools/python/python3-cryptography_3.3.2.bb b/meta-python/recipes-devtools/python/python3-cryptography_3.3.2.bb deleted file mode 100644 index a4c3344278..0000000000 --- a/meta-python/recipes-devtools/python/python3-cryptography_3.3.2.bb +++ /dev/null | |||
| @@ -1,68 +0,0 @@ | |||
| 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=bf405a8056a6647e7d077b0e7bc36aba \ | ||
| 6 | file://LICENSE.APACHE;md5=4e168cce331e5c827d4c2b68a6200e1b \ | ||
| 7 | file://LICENSE.BSD;md5=5ae30ba4123bc4f2fa49aa0b0dce887b" | ||
| 8 | |||
| 9 | LDSHARED += "-pthread" | ||
| 10 | |||
| 11 | SRC_URI[sha256sum] = "5a60d3780149e13b7a6ff7ad6526b38846354d11a15e21068e57073e29e19bed" | ||
| 12 | |||
| 13 | SRC_URI += " \ | ||
| 14 | file://run-ptest \ | ||
| 15 | file://h-test.patch \ | ||
| 16 | file://openssl3.patch \ | ||
| 17 | " | ||
| 18 | |||
| 19 | inherit pypi setuptools3 | ||
| 20 | |||
| 21 | DEPENDS += " \ | ||
| 22 | ${PYTHON_PN}-cffi \ | ||
| 23 | ${PYTHON_PN}-cffi-native \ | ||
| 24 | ${PYTHON_PN}-asn1crypto \ | ||
| 25 | ${PYTHON_PN}-six \ | ||
| 26 | " | ||
| 27 | |||
| 28 | RDEPENDS:${PN} += " \ | ||
| 29 | ${PYTHON_PN}-cffi \ | ||
| 30 | ${PYTHON_PN}-idna \ | ||
| 31 | ${PYTHON_PN}-asn1crypto \ | ||
| 32 | ${PYTHON_PN}-setuptools \ | ||
| 33 | ${PYTHON_PN}-six \ | ||
| 34 | " | ||
| 35 | |||
| 36 | RDEPENDS:${PN}:class-target += " \ | ||
| 37 | ${PYTHON_PN}-cffi \ | ||
| 38 | ${PYTHON_PN}-idna \ | ||
| 39 | ${PYTHON_PN}-numbers \ | ||
| 40 | ${PYTHON_PN}-asn1crypto \ | ||
| 41 | ${PYTHON_PN}-setuptools \ | ||
| 42 | ${PYTHON_PN}-six \ | ||
| 43 | ${PYTHON_PN}-threading \ | ||
| 44 | " | ||
| 45 | |||
| 46 | RDEPENDS:${PN}-ptest += " \ | ||
| 47 | ${PN} \ | ||
| 48 | ${PYTHON_PN}-cryptography-vectors \ | ||
| 49 | ${PYTHON_PN}-iso8601 \ | ||
| 50 | ${PYTHON_PN}-pretend \ | ||
| 51 | ${PYTHON_PN}-pytest \ | ||
| 52 | ${PYTHON_PN}-pytz \ | ||
| 53 | " | ||
| 54 | |||
| 55 | inherit ptest | ||
| 56 | |||
| 57 | do_install_ptest() { | ||
| 58 | install -d ${D}${PTEST_PATH}/tests | ||
| 59 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 60 | install -d ${D}${PTEST_PATH}/tests/hazmat | ||
| 61 | cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/ | ||
| 62 | } | ||
| 63 | |||
| 64 | FILES:${PN}-dbg += " \ | ||
| 65 | ${libdir}/${PYTHON_PN}2.7/site-packages/${SRCNAME}/hazmat/bindings/.debug \ | ||
| 66 | " | ||
| 67 | |||
| 68 | BBCLASSEXTEND = "native nativesdk" | ||
