From e102cccecf76806c3941942931dd13486ba8a77e Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Tue, 20 Jan 2026 14:03:29 +0200 Subject: python3-pynacl: Upgrade 1.5.0 -> 1.6.2 Upgrade to release 1.6.2: - Updated libsodium to 1.0.20-stable (2025-12-31 build) to resolve CVE-2025-69277. From 1.6.1: - The MAKE environment variable can now be used to specify the make binary that should be used in the build process. From 1.6.0: - BACKWARDS INCOMPATIBLE: Removed support for Python 3.6 and 3.7. - Added support for the low level AEAD AES bindings. - Added support for crypto_core_ed25519_from_uniform. - Update libsodium to 1.0.20-stable (2025-08-27 build). - Added support for free-threaded Python 3.14. - Added support for Windows on ARM wheels. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../0001-Build-bindings-reproducibly.patch | 39 --------------------- .../python/python3-pynacl_1.5.0.bb | 40 ---------------------- .../python/python3-pynacl_1.6.2.bb | 39 +++++++++++++++++++++ 3 files changed, 39 insertions(+), 79 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pynacl/0001-Build-bindings-reproducibly.patch delete mode 100644 meta-python/recipes-devtools/python/python3-pynacl_1.5.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-pynacl_1.6.2.bb (limited to 'meta-python/recipes-devtools') diff --git a/meta-python/recipes-devtools/python/python3-pynacl/0001-Build-bindings-reproducibly.patch b/meta-python/recipes-devtools/python/python3-pynacl/0001-Build-bindings-reproducibly.patch deleted file mode 100644 index 3e7480b485..0000000000 --- a/meta-python/recipes-devtools/python/python3-pynacl/0001-Build-bindings-reproducibly.patch +++ /dev/null @@ -1,39 +0,0 @@ -From eccc9ea5eef13ee353de610af36fb7759b70e2e4 Mon Sep 17 00:00:00 2001 -From: Colin Watson -Date: Mon, 26 Aug 2024 18:14:33 +0100 -Subject: [PATCH] Build bindings reproducibly - -`glob` output isn't guaranteed to be in any particular order, so -`_sodium.*.so` wasn't always reproducible. - -Upstream-Status: Backport [https://github.com/pyca/pynacl/pull/836] -Signed-off-by: Khem Raj ---- - src/bindings/build.py | 12 ++++++++---- - 1 file changed, 8 insertions(+), 4 deletions(-) - -diff --git a/src/bindings/build.py b/src/bindings/build.py -index 9634237..777237b 100644 ---- a/src/bindings/build.py -+++ b/src/bindings/build.py -@@ -22,12 +22,16 @@ from cffi import FFI - __all__ = ["ffi"] - - --HEADERS = glob.glob( -- os.path.join(os.path.abspath(os.path.dirname(__file__)), "*.h") -+HEADERS = sorted( -+ glob.glob(os.path.join(os.path.abspath(os.path.dirname(__file__)), "*.h")) - ) - --MINIMAL_HEADERS = glob.glob( -- os.path.join(os.path.abspath(os.path.dirname(__file__)), "minimal", "*.h") -+MINIMAL_HEADERS = sorted( -+ glob.glob( -+ os.path.join( -+ os.path.abspath(os.path.dirname(__file__)), "minimal", "*.h" -+ ) -+ ) - ) - - diff --git a/meta-python/recipes-devtools/python/python3-pynacl_1.5.0.bb b/meta-python/recipes-devtools/python/python3-pynacl_1.5.0.bb deleted file mode 100644 index 393066de9d..0000000000 --- a/meta-python/recipes-devtools/python/python3-pynacl_1.5.0.bb +++ /dev/null @@ -1,40 +0,0 @@ -SUMMARY = "Python binding to the Networking and Cryptography (NaCl) library" -DESCRIPTION = "Python binding to the Networking and Cryptography (NaCl) library" -HOMEPAGE = "https://github.com/pyca/pynacl" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=8cc789b082b3d97e1ccc5261f8594d3f" - -SRC_URI += "file://0001-Build-bindings-reproducibly.patch" -SRC_URI[sha256sum] = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba" - -PYPI_PACKAGE = "PyNaCl" -UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" - -inherit pypi python_setuptools_build_meta - -DEPENDS += "\ - python3-cffi-native \ - libsodium \ -" - -do_compile:prepend() { - export SODIUM_INSTALL=system -} - -do_install:prepend() { - export SODIUM_INSTALL=system -} - -RDEPENDS:${PN} = "\ - python3-six \ - python3-cffi \ - libsodium \ -" - -RPROVIDES:${PN} = "python3-nacl" - -# in meta-virtualization layer -# -RCONFLICTS:${PN} = "python3-nacl" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-pynacl_1.6.2.bb b/meta-python/recipes-devtools/python/python3-pynacl_1.6.2.bb new file mode 100644 index 0000000000..d72d2be2f1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pynacl_1.6.2.bb @@ -0,0 +1,39 @@ +SUMMARY = "Python binding to the Networking and Cryptography (NaCl) library" +DESCRIPTION = "Python binding to the Networking and Cryptography (NaCl) library" +HOMEPAGE = "https://github.com/pyca/pynacl" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8cc789b082b3d97e1ccc5261f8594d3f" + +SRC_URI[sha256sum] = "018494d6d696ae03c7e656e5e74cdfd8ea1326962cc401bcf018f1ed8436811c" + +PYPI_PACKAGE = "pynacl" +UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" + +inherit pypi python_setuptools_build_meta + +DEPENDS += "\ + python3-cffi-native \ + libsodium \ +" + +do_compile:prepend() { + export SODIUM_INSTALL=system +} + +do_install:prepend() { + export SODIUM_INSTALL=system +} + +RDEPENDS:${PN} = "\ + python3-six \ + python3-cffi \ + libsodium \ +" + +RPROVIDES:${PN} = "python3-nacl" + +# in meta-virtualization layer +# +RCONFLICTS:${PN} = "python3-nacl" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf