-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from jhnc-oss/backport/dunfell/160-opcuaasyncio
Add python3-opcua-asyncio
- Loading branch information
Showing
12 changed files
with
171 additions
and
5 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...ls/python/python3-cryptography/0001-define-OAEP-properties-for-all-openssl-versions.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From d890e2a60616af098d6ec1d4e4a53cc82a335731 Mon Sep 17 00:00:00 2001 | ||
From: Paul Kehrer <paul.l.kehrer@gmail.com> | ||
Date: Thu, 26 Nov 2020 11:52:47 -0600 | ||
Subject: [PATCH] define OAEP properties for all openssl versions (#5589) | ||
|
||
In 3.0 these aren't macros so we can't test this way. All our supported | ||
OpenSSLs have these bindings now and LibreSSL does not. | ||
|
||
|
||
This patch can be removed on python3-cryptography >= 3.3. Updated for | ||
2.8 compatibility. | ||
|
||
Upstream-Status: Accepted | ||
Signed-off-by: jhnc-oss | ||
--- | ||
diff --git a/src/_cffi_src/openssl/rsa.py b/src/_cffi_src/openssl/rsa.py | ||
--- a/src/_cffi_src/openssl/rsa.py | ||
+++ b/src/_cffi_src/openssl/rsa.py | ||
@@ -60,17 +60,13 @@ int EVP_PKEY_CTX_set_rsa_oaep_md(EVP_PKEY_CTX *, EVP_MD *); | ||
CUSTOMIZATIONS = """ | ||
static const long Cryptography_HAS_PSS_PADDING = 1; | ||
|
||
-#if defined(EVP_PKEY_CTX_set_rsa_oaep_md) | ||
+#if !CRYPTOGRAPHY_IS_LIBRESSL | ||
static const long Cryptography_HAS_RSA_OAEP_MD = 1; | ||
-#else | ||
-static const long Cryptography_HAS_RSA_OAEP_MD = 0; | ||
-int (*EVP_PKEY_CTX_set_rsa_oaep_md)(EVP_PKEY_CTX *, EVP_MD *) = NULL; | ||
-#endif | ||
- | ||
-#if defined(EVP_PKEY_CTX_set0_rsa_oaep_label) | ||
static const long Cryptography_HAS_RSA_OAEP_LABEL = 1; | ||
#else | ||
+static const long Cryptography_HAS_RSA_OAEP_MD = 0; | ||
static const long Cryptography_HAS_RSA_OAEP_LABEL = 0; | ||
+int (*EVP_PKEY_CTX_set_rsa_oaep_md)(EVP_PKEY_CTX *, EVP_MD *) = NULL; | ||
int (*EVP_PKEY_CTX_set0_rsa_oaep_label)(EVP_PKEY_CTX *, unsigned char *, | ||
int) = NULL; | ||
#endif |
28 changes: 28 additions & 0 deletions
28
...s-devtools/python/python3-cryptography/0002-remove-some-more-constants-we-dont-need.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From a13da93e43d2a7e06b345787807a0c689dc3ad85 Mon Sep 17 00:00:00 2001 | ||
From: Paul Kehrer <paul.l.kehrer@gmail.com> | ||
Date: Thu, 30 Jul 2020 09:44:31 -0500 | ||
Subject: [PATCH] remove some more constants we don't need (#5361) | ||
|
||
these are gone in 3.0 anyway and were removed in that draft PR | ||
|
||
|
||
This patch can be removed on python3-cryptography >= 3.1. | ||
|
||
Upstream-Status: Accepted | ||
Signed-off-by: jhnc-oss | ||
|
||
--- | ||
diff --git a/src/_cffi_src/openssl/crypto.py b/src/_cffi_src/openssl/crypto.py | ||
--- a/src/_cffi_src/openssl/crypto.py | ||
+++ b/src/_cffi_src/openssl/crypto.py | ||
@@ -23,10 +23,6 @@ static const int OPENSSL_CFLAGS; | ||
static const int OPENSSL_BUILT_ON; | ||
static const int OPENSSL_PLATFORM; | ||
static const int OPENSSL_DIR; | ||
-static const int CRYPTO_MEM_CHECK_ON; | ||
-static const int CRYPTO_MEM_CHECK_OFF; | ||
-static const int CRYPTO_MEM_CHECK_ENABLE; | ||
-static const int CRYPTO_MEM_CHECK_DISABLE; | ||
""" | ||
|
||
FUNCTIONS = """ |
19 changes: 19 additions & 0 deletions
19
meta-python/recipes-devtools/python/python3-cryptography/0003-openssl3-compatibility.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Remove EVP_R_KEYGEN_FAILURE for OpenSSL v3.x compatibility | ||
|
||
This patch can be removed on python3-cryptography >= 3.1. | ||
|
||
Upstream-Status: Accepted | ||
Signed-off-by: jhnc-oss | ||
--- | ||
diff --git a/src/_cffi_src/openssl/err.py b/src/_cffi_src/openssl/err.py | ||
index d4033f5a4..f573bdf3a 100644 | ||
--- a/src/_cffi_src/openssl/err.py | ||
+++ b/src/_cffi_src/openssl/err.py | ||
@@ -66,7 +66,6 @@ static const int EVP_R_DIFFERENT_KEY_TYPES; | ||
static const int EVP_R_INITIALIZATION_ERROR; | ||
static const int EVP_R_INPUT_NOT_INITIALIZED; | ||
static const int EVP_R_INVALID_KEY_LENGTH; | ||
-static const int EVP_R_KEYGEN_FAILURE; | ||
static const int EVP_R_MISSING_PARAMETERS; | ||
static const int EVP_R_NO_CIPHER_SET; | ||
static const int EVP_R_NO_DIGEST_SET; |
7 changes: 7 additions & 0 deletions
7
meta-python/recipes-devtools/python/python3-cryptography_%.bbappend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
|
||
SRC_URI += "\ | ||
file://0001-define-OAEP-properties-for-all-openssl-versions.patch \ | ||
file://0002-remove-some-more-constants-we-dont-need.patch \ | ||
file://0003-openssl3-compatibility.patch \ | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SUMMARY = "Sorted Containers is an Apache2 licensed sorted collections library, written in pure-Python, and fast as C-extensions." | ||
HOMEPAGE = "http://www.grantjenks.com/docs/sortedcontainers/" | ||
LICENSE = "Apache-2.0" | ||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7c7c6a1a12ec816da16c1839137d53ae" | ||
|
||
inherit pypi setuptools3 | ||
SRC_URI[sha256sum] = "25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88" | ||
|
||
BBCLASSEXTEND = "native nativesdk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
SUMMARY = "asyncio bridge to the standard sqlite3 module " | ||
DESCRIPTION = "aiosqlite provides a friendly, async interface to sqlite databases." | ||
AUTHOR = "omnilib" | ||
HOMEPAGE = "https://github.com/omnilib/aiosqlite" | ||
BUGTRACKER = "https://github.com/omnilib/aiosqlite/issues" | ||
SECTION = "development" | ||
LICENSE = "MIT" | ||
|
||
CVE_PRODUCT = "" | ||
|
16 changes: 16 additions & 0 deletions
16
recipes-devtools/python3-aiosqlite/python3-aiosqlite_0.19.0.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require ${PN}.inc | ||
|
||
LIC_FILES_CHKSUM = "file://LICENSE;md5=f0c422eaa1f23d09f8203dc0af3e2d54" | ||
|
||
SRC_URI[sha256sum] = "95ee77b91c8d2808bd08a59fbebf66270e9090c3d92ffbf260dc0db0b979577d" | ||
|
||
PYPI_PACKAGE = "aiosqlite" | ||
|
||
inherit pypi setuptools3 | ||
|
||
RDEPENDS:${PN} += "\ | ||
python3-typing-extensions \ | ||
" | ||
|
||
BBCLASSEXTEND = "native nativesdk" | ||
|
10 changes: 10 additions & 0 deletions
10
recipes-devtools/python3-opcua-asyncio/python3-opcua-asyncio.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
SUMMARY = "OPC UA library for python" | ||
DESCRIPTION = "OPC UA / IEC 62541 Client and Server for Python" | ||
AUTHOR = "FreeOpcUa" | ||
HOMEPAGE = "https://github.com/FreeOpcUa/opcua-asyncio" | ||
BUGTRACKER = "https://github.com/FreeOpcUa/opcua-asyncio/issues" | ||
SECTION = "development" | ||
LICENSE = "LGPLv3+" | ||
|
||
CVE_PRODUCT = "" | ||
|
20 changes: 20 additions & 0 deletions
20
recipes-devtools/python3-opcua-asyncio/python3-opcua-asyncio_1.0.3.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require ${PN}.inc | ||
|
||
LIC_FILES_CHKSUM = "file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02" | ||
|
||
SRC_URI[sha256sum] = "581a5f4d32e65959105d907c82cec3c4ab98ef82230a2ca1778ca58f1a3b1d45" | ||
|
||
PYPI_PACKAGE = "asyncua" | ||
|
||
inherit pypi setuptools3 | ||
|
||
RDEPENDS:${PN} += "\ | ||
python3-aiofiles \ | ||
python3-aiosqlite \ | ||
python3-cryptography \ | ||
python3-dateutil \ | ||
python3-pytz \ | ||
python3-sortedcontainers \ | ||
" | ||
|
||
BBCLASSEXTEND = "native nativesdk" |