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_36.0.1.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_36.0.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-cryptography_36.0.1.bb | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-cryptography_36.0.1.bb b/meta-python/recipes-devtools/python/python3-cryptography_36.0.1.bb new file mode 100644 index 0000000000..abb15381f5 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-cryptography_36.0.1.bb | |||
| @@ -0,0 +1,121 @@ | |||
| 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 ) & PSF-2.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=bf405a8056a6647e7d077b0e7bc36aba \ | ||
| 6 | file://LICENSE.APACHE;md5=4e168cce331e5c827d4c2b68a6200e1b \ | ||
| 7 | file://LICENSE.BSD;md5=5ae30ba4123bc4f2fa49aa0b0dce887b \ | ||
| 8 | file://LICENSE.PSF;md5=43c37d21e1dbad10cddcd150ba2c0595 \ | ||
| 9 | " | ||
| 10 | LDSHARED += "-pthread" | ||
| 11 | |||
| 12 | SRC_URI[sha256sum] = "53e5c1dc3d7a953de055d77bef2ff607ceef7a2aac0353b5d630ab67f7423638" | ||
| 13 | |||
| 14 | SRC_URI += " \ | ||
| 15 | file://run-ptest \ | ||
| 16 | file://check-memfree.py \ | ||
| 17 | file://0001-Cargo.toml-specify-pem-version.patch \ | ||
| 18 | file://0002-Cargo.toml-edition-2018-2021.patch \ | ||
| 19 | " | ||
| 20 | |||
| 21 | inherit pypi setuptools3_rust | ||
| 22 | |||
| 23 | DEPENDS += " \ | ||
| 24 | ${PYTHON_PN}-asn1crypto-native \ | ||
| 25 | ${PYTHON_PN}-cffi-native \ | ||
| 26 | ${PYTHON_PN}-setuptools-rust-native \ | ||
| 27 | ${PYTHON_PN}-six-native \ | ||
| 28 | " | ||
| 29 | |||
| 30 | SRC_URI += " \ | ||
| 31 | crate://crates.io/Inflector/0.11.4 \ | ||
| 32 | crate://crates.io/aliasable/0.1.3 \ | ||
| 33 | crate://crates.io/asn1/0.8.7 \ | ||
| 34 | crate://crates.io/asn1_derive/0.8.7 \ | ||
| 35 | crate://crates.io/autocfg/1.0.1 \ | ||
| 36 | crate://crates.io/base64/0.13.0 \ | ||
| 37 | crate://crates.io/bitflags/1.3.2 \ | ||
| 38 | crate://crates.io/cfg-if/1.0.0 \ | ||
| 39 | crate://crates.io/chrono/0.4.19 \ | ||
| 40 | crate://crates.io/indoc-impl/0.3.6 \ | ||
| 41 | crate://crates.io/indoc/0.3.6 \ | ||
| 42 | crate://crates.io/instant/0.1.12 \ | ||
| 43 | crate://crates.io/lazy_static/1.4.0 \ | ||
| 44 | crate://crates.io/libc/0.2.112 \ | ||
| 45 | crate://crates.io/lock_api/0.4.5 \ | ||
| 46 | crate://crates.io/num-integer/0.1.44 \ | ||
| 47 | crate://crates.io/num-traits/0.2.14 \ | ||
| 48 | crate://crates.io/once_cell/1.9.0 \ | ||
| 49 | crate://crates.io/ouroboros/0.13.0 \ | ||
| 50 | crate://crates.io/ouroboros_macro/0.13.0 \ | ||
| 51 | crate://crates.io/parking_lot/0.11.2 \ | ||
| 52 | crate://crates.io/parking_lot_core/0.8.5 \ | ||
| 53 | crate://crates.io/paste-impl/0.1.18 \ | ||
| 54 | crate://crates.io/paste/0.1.18 \ | ||
| 55 | crate://crates.io/pem/1.0.2 \ | ||
| 56 | crate://crates.io/proc-macro-error-attr/1.0.4 \ | ||
| 57 | crate://crates.io/proc-macro-error/1.0.4 \ | ||
| 58 | crate://crates.io/proc-macro-hack/0.5.19 \ | ||
| 59 | crate://crates.io/proc-macro2/1.0.36 \ | ||
| 60 | crate://crates.io/pyo3-build-config/0.15.1 \ | ||
| 61 | crate://crates.io/pyo3-macros-backend/0.15.1 \ | ||
| 62 | crate://crates.io/pyo3-macros/0.15.1 \ | ||
| 63 | crate://crates.io/pyo3/0.15.1 \ | ||
| 64 | crate://crates.io/quote/1.0.14 \ | ||
| 65 | crate://crates.io/redox_syscall/0.2.10 \ | ||
| 66 | crate://crates.io/scopeguard/1.1.0 \ | ||
| 67 | crate://crates.io/smallvec/1.7.0 \ | ||
| 68 | crate://crates.io/stable_deref_trait/1.2.0 \ | ||
| 69 | crate://crates.io/syn/1.0.85 \ | ||
| 70 | crate://crates.io/unicode-xid/0.2.2 \ | ||
| 71 | crate://crates.io/unindent/0.1.7 \ | ||
| 72 | crate://crates.io/version_check/0.9.4 \ | ||
| 73 | crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \ | ||
| 74 | crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \ | ||
| 75 | crate://crates.io/winapi/0.3.9 \ | ||
| 76 | " | ||
| 77 | |||
| 78 | RDEPENDS:${PN} += " \ | ||
| 79 | ${PYTHON_PN}-asn1crypto \ | ||
| 80 | ${PYTHON_PN}-cffi \ | ||
| 81 | ${PYTHON_PN}-idna \ | ||
| 82 | ${PYTHON_PN}-setuptools \ | ||
| 83 | ${PYTHON_PN}-six \ | ||
| 84 | " | ||
| 85 | |||
| 86 | RDEPENDS:${PN}:append:class-target = " \ | ||
| 87 | ${PYTHON_PN}-numbers \ | ||
| 88 | ${PYTHON_PN}-threading \ | ||
| 89 | " | ||
| 90 | |||
| 91 | RDEPENDS:${PN}-ptest += " \ | ||
| 92 | ${PYTHON_PN}-bcrypt \ | ||
| 93 | ${PYTHON_PN}-cryptography-vectors \ | ||
| 94 | ${PYTHON_PN}-hypothesis \ | ||
| 95 | ${PYTHON_PN}-iso8601 \ | ||
| 96 | ${PYTHON_PN}-pretend \ | ||
| 97 | ${PYTHON_PN}-psutil \ | ||
| 98 | ${PYTHON_PN}-pytest \ | ||
| 99 | ${PYTHON_PN}-pytest-subtests \ | ||
| 100 | ${PYTHON_PN}-pytz \ | ||
| 101 | " | ||
| 102 | |||
| 103 | inherit ptest | ||
| 104 | |||
| 105 | do_install_ptest() { | ||
| 106 | install -D ${WORKDIR}/check-memfree.py ${D}${PTEST_PATH}/ | ||
| 107 | install -d ${D}${PTEST_PATH}/tests | ||
| 108 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 109 | install -d ${D}${PTEST_PATH}/tests/hazmat | ||
| 110 | cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/ | ||
| 111 | cp -r ${S}/pyproject.toml ${D}${PTEST_PATH}/ | ||
| 112 | } | ||
| 113 | |||
| 114 | FILES:${PN}-ptest += " \ | ||
| 115 | ${PTEST_PATH}/check-memfree.py \ | ||
| 116 | " | ||
| 117 | FILES:${PN}-dbg += " \ | ||
| 118 | ${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/hazmat/bindings/.debug \ | ||
| 119 | " | ||
| 120 | |||
| 121 | BBCLASSEXTEND = "native nativesdk" | ||
