summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3-cryptography/0001-Cargo.toml-specify-pem-version.patch12
-rw-r--r--meta/recipes-devtools/python/python3-cryptography/fix-leak-metric.patch36
-rw-r--r--meta/recipes-devtools/python/python3-cryptography_36.0.2.bb123
-rw-r--r--meta/recipes-devtools/python/python3-cryptography_37.0.1.bb118
4 files changed, 123 insertions, 166 deletions
diff --git a/meta/recipes-devtools/python/python3-cryptography/0001-Cargo.toml-specify-pem-version.patch b/meta/recipes-devtools/python/python3-cryptography/0001-Cargo.toml-specify-pem-version.patch
index d7ab757bb5..7266fd7bef 100644
--- a/meta/recipes-devtools/python/python3-cryptography/0001-Cargo.toml-specify-pem-version.patch
+++ b/meta/recipes-devtools/python/python3-cryptography/0001-Cargo.toml-specify-pem-version.patch
@@ -1,4 +1,4 @@
1From ec8d3f3c61280c8140b34ed1479baef5e706f064 Mon Sep 17 00:00:00 2001 1From d41203b9b79f5edc2d33b0d62921822294dfaa6b Mon Sep 17 00:00:00 2001
2From: Tim Orling <tim.orling@konsulko.com> 2From: Tim Orling <tim.orling@konsulko.com>
3Date: Fri, 14 Jan 2022 22:02:25 -0800 3Date: Fri, 14 Jan 2022 22:02:25 -0800
4Subject: [PATCH] Cargo.toml: specify pem version 4Subject: [PATCH] Cargo.toml: specify pem version
@@ -9,23 +9,21 @@ pem = { version: "1.0.2"}
9Upstream-Status: Pending 9Upstream-Status: Pending
10 10
11Signed-off-by: Tim Orling <tim.orling@konsulko.com> 11Signed-off-by: Tim Orling <tim.orling@konsulko.com>
12
12--- 13---
13 src/rust/Cargo.toml | 2 +- 14 src/rust/Cargo.toml | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-) 15 1 file changed, 1 insertion(+), 1 deletion(-)
15 16
16diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml 17diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml
17index 617167d0..174eaa80 100644 18index d17245d..f8f6416 100644
18--- a/src/rust/Cargo.toml 19--- a/src/rust/Cargo.toml
19+++ b/src/rust/Cargo.toml 20+++ b/src/rust/Cargo.toml
20@@ -9,7 +9,7 @@ publish = false 21@@ -9,7 +9,7 @@ publish = false
21 lazy_static = "1" 22 lazy_static = "1"
22 pyo3 = { version = "0.15.1" } 23 pyo3 = { version = "0.15.2" }
23 asn1 = { version = "0.8.7", default-features = false, features = ["derive"] } 24 asn1 = { version = "0.8.7", default-features = false, features = ["derive"] }
24-pem = "1.0" 25-pem = "1.0"
25+pem = { version = "1.0.2" } 26+pem = { version = "1.0.2" }
26 chrono = { version = "0.4", default-features = false, features = ["alloc", "clock"] } 27 chrono = { version = "0.4", default-features = false, features = ["alloc", "clock"] }
27 ouroboros = "0.13" 28 ouroboros = "0.15"
28 29
29--
302.30.2
31
diff --git a/meta/recipes-devtools/python/python3-cryptography/fix-leak-metric.patch b/meta/recipes-devtools/python/python3-cryptography/fix-leak-metric.patch
deleted file mode 100644
index 904984f43d..0000000000
--- a/meta/recipes-devtools/python/python3-cryptography/fix-leak-metric.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1Trigger hashlib initialisation so that the test_create_certificate_with_extensions
2test doesn't fail.
3
4Upstream-Status: Backport
5Signed-off-by: Ross Burton <ross.burton@arm.com>
6
7From dc989d563ab6a078651160e5e6d4ee3df8cb08d7 Mon Sep 17 00:00:00 2001
8From: Alex Gaynor <alex.gaynor@gmail.com>
9Date: Thu, 7 Apr 2022 03:15:09 -0400
10Subject: [PATCH] Added Ubuntu Jammy to CI (#7047)
11
12* Added Ubuntu Jammy to CI
13
14* try thing
15---
16 .github/workflows/ci.yml | 1 +
17 docs/installation.rst | 2 +-
18 tests/hazmat/backends/test_openssl_memleak.py | 3 +++
19 3 files changed, 5 insertions(+), 1 deletion(-)
20
21diff --git a/tests/hazmat/backends/test_openssl_memleak.py b/tests/hazmat/backends/test_openssl_memleak.py
22index 835c9256a6..2605566bd5 100644
23--- a/tests/hazmat/backends/test_openssl_memleak.py
24+++ b/tests/hazmat/backends/test_openssl_memleak.py
25@@ -82,8 +82,11 @@ def free(ptr, path, line):
26 assert result == 1
27
28 # Trigger a bunch of initialization stuff.
29+ import hashlib
30 from cryptography.hazmat.backends.openssl.backend import backend
31
32+ hashlib.sha256()
33+
34 start_heap = set(heap)
35
36 try:
diff --git a/meta/recipes-devtools/python/python3-cryptography_36.0.2.bb b/meta/recipes-devtools/python/python3-cryptography_36.0.2.bb
deleted file mode 100644
index 9ef5ff39c8..0000000000
--- a/meta/recipes-devtools/python/python3-cryptography_36.0.2.bb
+++ /dev/null
@@ -1,123 +0,0 @@
1SUMMARY = "Provides cryptographic recipes and primitives to python developers"
2HOMEPAGE = "https://cryptography.io/"
3SECTION = "devel/python"
4LICENSE = "( Apache-2.0 | BSD-3-Clause ) & PSF-2.0"
5LIC_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 "
10LDSHARED += "-pthread"
11
12SRC_URI[sha256sum] = "70f8f4f7bb2ac9f340655cbac89d68c527af5bb4387522a8413e841e3e6628c9"
13
14SRC_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 file://fix-leak-metric.patch \
20"
21
22inherit pypi python_setuptools3_rust
23
24DEPENDS += " \
25 ${PYTHON_PN}-asn1crypto-native \
26 ${PYTHON_PN}-cffi-native \
27 ${PYTHON_PN}-setuptools-rust-native \
28 ${PYTHON_PN}-six-native \
29"
30
31SRC_URI += " \
32 crate://crates.io/Inflector/0.11.4 \
33 crate://crates.io/aliasable/0.1.3 \
34 crate://crates.io/asn1/0.8.7 \
35 crate://crates.io/asn1_derive/0.8.7 \
36 crate://crates.io/autocfg/1.0.1 \
37 crate://crates.io/base64/0.13.0 \
38 crate://crates.io/bitflags/1.3.2 \
39 crate://crates.io/cfg-if/1.0.0 \
40 crate://crates.io/chrono/0.4.19 \
41 crate://crates.io/indoc-impl/0.3.6 \
42 crate://crates.io/indoc/0.3.6 \
43 crate://crates.io/instant/0.1.12 \
44 crate://crates.io/lazy_static/1.4.0 \
45 crate://crates.io/libc/0.2.120 \
46 crate://crates.io/lock_api/0.4.5 \
47 crate://crates.io/num-integer/0.1.44 \
48 crate://crates.io/num-traits/0.2.14 \
49 crate://crates.io/once_cell/1.9.0 \
50 crate://crates.io/ouroboros/0.13.0 \
51 crate://crates.io/ouroboros_macro/0.13.0 \
52 crate://crates.io/parking_lot/0.11.2 \
53 crate://crates.io/parking_lot_core/0.8.5 \
54 crate://crates.io/paste-impl/0.1.18 \
55 crate://crates.io/paste/0.1.18 \
56 crate://crates.io/pem/1.0.2 \
57 crate://crates.io/proc-macro-error-attr/1.0.4 \
58 crate://crates.io/proc-macro-error/1.0.4 \
59 crate://crates.io/proc-macro-hack/0.5.19 \
60 crate://crates.io/proc-macro2/1.0.36 \
61 crate://crates.io/pyo3-build-config/0.15.1 \
62 crate://crates.io/pyo3-macros-backend/0.15.1 \
63 crate://crates.io/pyo3-macros/0.15.1 \
64 crate://crates.io/pyo3/0.15.1 \
65 crate://crates.io/quote/1.0.14 \
66 crate://crates.io/redox_syscall/0.2.10 \
67 crate://crates.io/scopeguard/1.1.0 \
68 crate://crates.io/smallvec/1.7.0 \
69 crate://crates.io/stable_deref_trait/1.2.0 \
70 crate://crates.io/syn/1.0.85 \
71 crate://crates.io/unicode-xid/0.2.2 \
72 crate://crates.io/unindent/0.1.7 \
73 crate://crates.io/version_check/0.9.4 \
74 crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
75 crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
76 crate://crates.io/winapi/0.3.9 \
77"
78
79RDEPENDS:${PN} += " \
80 ${PYTHON_PN}-asn1crypto \
81 ${PYTHON_PN}-cffi \
82 ${PYTHON_PN}-idna \
83 ${PYTHON_PN}-setuptools \
84 ${PYTHON_PN}-six \
85"
86
87RDEPENDS:${PN}:append:class-target = " \
88 ${PYTHON_PN}-numbers \
89 ${PYTHON_PN}-threading \
90"
91
92RDEPENDS:${PN}-ptest += " \
93 ${PYTHON_PN}-bcrypt \
94 ${PYTHON_PN}-cryptography-vectors (= ${PV}) \
95 ${PYTHON_PN}-hypothesis \
96 ${PYTHON_PN}-iso8601 \
97 ${PYTHON_PN}-pretend \
98 ${PYTHON_PN}-psutil \
99 ${PYTHON_PN}-pytest \
100 ${PYTHON_PN}-pytest-subtests \
101 ${PYTHON_PN}-pytz \
102 ${PYTHON_PN}-tomli \
103"
104
105inherit ptest
106
107do_install_ptest() {
108 install -D ${WORKDIR}/check-memfree.py ${D}${PTEST_PATH}/
109 install -d ${D}${PTEST_PATH}/tests
110 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
111 install -d ${D}${PTEST_PATH}/tests/hazmat
112 cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/
113 cp -r ${S}/pyproject.toml ${D}${PTEST_PATH}/
114}
115
116FILES:${PN}-ptest += " \
117 ${PTEST_PATH}/check-memfree.py \
118"
119FILES:${PN}-dbg += " \
120 ${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/hazmat/bindings/.debug \
121"
122
123BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb b/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
new file mode 100644
index 0000000000..1271954a08
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-cryptography_37.0.1.bb
@@ -0,0 +1,118 @@
1SUMMARY = "Provides cryptographic recipes and primitives to python developers"
2HOMEPAGE = "https://cryptography.io/"
3SECTION = "devel/python"
4LICENSE = "( Apache-2.0 | BSD-3-Clause ) & PSF-2.0"
5LIC_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 "
10LDSHARED += "-pthread"
11
12SRC_URI[sha256sum] = "d610d0ee14dd9109006215c7c0de15eee91230b70a9bce2263461cf7c3720b83"
13
14SRC_URI += "file://run-ptest \
15 file://check-memfree.py \
16 file://0001-Cargo.toml-specify-pem-version.patch \
17 file://0002-Cargo.toml-edition-2018-2021.patch \
18 crate://crates.io/Inflector/0.11.4 \
19 crate://crates.io/aliasable/0.1.3 \
20 crate://crates.io/asn1/0.8.7 \
21 crate://crates.io/asn1_derive/0.8.7 \
22 crate://crates.io/autocfg/1.1.0 \
23 crate://crates.io/base64/0.13.0 \
24 crate://crates.io/bitflags/1.3.2 \
25 crate://crates.io/cfg-if/1.0.0 \
26 crate://crates.io/chrono/0.4.19 \
27 crate://crates.io/indoc-impl/0.3.6 \
28 crate://crates.io/indoc/0.3.6 \
29 crate://crates.io/instant/0.1.12 \
30 crate://crates.io/lazy_static/1.4.0 \
31 crate://crates.io/libc/0.2.124 \
32 crate://crates.io/lock_api/0.4.7 \
33 crate://crates.io/num-integer/0.1.44 \
34 crate://crates.io/num-traits/0.2.14 \
35 crate://crates.io/once_cell/1.10.0 \
36 crate://crates.io/ouroboros/0.15.0 \
37 crate://crates.io/ouroboros_macro/0.15.0 \
38 crate://crates.io/parking_lot/0.11.2 \
39 crate://crates.io/parking_lot_core/0.8.5 \
40 crate://crates.io/paste-impl/0.1.18 \
41 crate://crates.io/paste/0.1.18 \
42 crate://crates.io/pem/1.0.2 \
43 crate://crates.io/proc-macro-error-attr/1.0.4 \
44 crate://crates.io/proc-macro-error/1.0.4 \
45 crate://crates.io/proc-macro-hack/0.5.19 \
46 crate://crates.io/proc-macro2/1.0.37 \
47 crate://crates.io/pyo3-build-config/0.15.2 \
48 crate://crates.io/pyo3-macros-backend/0.15.2 \
49 crate://crates.io/pyo3-macros/0.15.2 \
50 crate://crates.io/pyo3/0.15.2 \
51 crate://crates.io/quote/1.0.18 \
52 crate://crates.io/redox_syscall/0.2.13 \
53 crate://crates.io/scopeguard/1.1.0 \
54 crate://crates.io/smallvec/1.8.0 \
55 crate://crates.io/stable_deref_trait/1.2.0 \
56 crate://crates.io/syn/1.0.91 \
57 crate://crates.io/unicode-xid/0.2.2 \
58 crate://crates.io/unindent/0.1.8 \
59 crate://crates.io/version_check/0.9.4 \
60 crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
61 crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
62 crate://crates.io/winapi/0.3.9 \
63 "
64
65inherit pypi python_setuptools3_rust
66
67DEPENDS += " \
68 ${PYTHON_PN}-asn1crypto-native \
69 ${PYTHON_PN}-cffi-native \
70 ${PYTHON_PN}-setuptools-rust-native \
71 ${PYTHON_PN}-six-native \
72"
73
74RDEPENDS:${PN} += " \
75 ${PYTHON_PN}-asn1crypto \
76 ${PYTHON_PN}-cffi \
77 ${PYTHON_PN}-idna \
78 ${PYTHON_PN}-setuptools \
79 ${PYTHON_PN}-six \
80"
81
82RDEPENDS:${PN}:append:class-target = " \
83 ${PYTHON_PN}-numbers \
84 ${PYTHON_PN}-threading \
85"
86
87RDEPENDS:${PN}-ptest += " \
88 ${PYTHON_PN}-bcrypt \
89 ${PYTHON_PN}-cryptography-vectors (= ${PV}) \
90 ${PYTHON_PN}-hypothesis \
91 ${PYTHON_PN}-iso8601 \
92 ${PYTHON_PN}-pretend \
93 ${PYTHON_PN}-psutil \
94 ${PYTHON_PN}-pytest \
95 ${PYTHON_PN}-pytest-subtests \
96 ${PYTHON_PN}-pytz \
97 ${PYTHON_PN}-tomli \
98"
99
100inherit ptest
101
102do_install_ptest() {
103 install -D ${WORKDIR}/check-memfree.py ${D}${PTEST_PATH}/
104 install -d ${D}${PTEST_PATH}/tests
105 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
106 install -d ${D}${PTEST_PATH}/tests/hazmat
107 cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/
108 cp -r ${S}/pyproject.toml ${D}${PTEST_PATH}/
109}
110
111FILES:${PN}-ptest += " \
112 ${PTEST_PATH}/check-memfree.py \
113"
114FILES:${PN}-dbg += " \
115 ${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/hazmat/bindings/.debug \
116"
117
118BBCLASSEXTEND = "native nativesdk"