From abe2fa9fae2b5446f0b2ad03c87ec6acb2eda945 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 29 Mar 2026 15:58:27 +0000 Subject: [PATCH] python-cryptography: bump to 46.0.6 Starting with 46.x, cryptography switched its build backend from setuptools-rust to maturin. Update PKG_BUILD_DEPENDS accordingly: replace python-setuptools-rust/host with python-maturin/host and python-setuptools/host (setuptools is still required by cffi). Drop 001-Update-ouroboros.patch: the ouroboros crate is no longer a dependency in 46.x, so the patch (which bumped it from 0.15 to 0.18 to fix RUSTSEC-2023-0042) no longer applies. Signed-off-by: Alexandru Ardelean (cherry picked from commit 2d20f8f0dcdba588a243318a3199412b84da7815) --- lang/python/python-cryptography/Makefile | 6 +++--- .../patches/001-Update-ouroboros.patch | 13 ------------- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 lang/python/python-cryptography/patches/001-Update-ouroboros.patch diff --git a/lang/python/python-cryptography/Makefile b/lang/python/python-cryptography/Makefile index 2c5037d8ab..360c4f1f80 100644 --- a/lang/python/python-cryptography/Makefile +++ b/lang/python/python-cryptography/Makefile @@ -8,18 +8,18 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-cryptography -PKG_VERSION:=41.0.7 +PKG_VERSION:=46.0.6 PKG_RELEASE:=1 PYPI_NAME:=cryptography -PKG_HASH:=13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc +PKG_HASH:=27550628a518c5c6c903d84f637fbecf287f6cb9ced3804838a1295dc1fd0759 PKG_LICENSE:=Apache-2.0 BSD-3-Clause PKG_LICENSE_FILES:=LICENSE.APACHE LICENSE.BSD PKG_MAINTAINER:=Jeffery To PKG_CPE_ID:=cpe:/a:cryptography.io:cryptography -PKG_BUILD_DEPENDS:=libffi/host python-cffi/host python-setuptools-rust/host +PKG_BUILD_DEPENDS:=libffi/host python-cffi/host python-maturin/host python-setuptools/host include ../pypi.mk include $(INCLUDE_DIR)/package.mk diff --git a/lang/python/python-cryptography/patches/001-Update-ouroboros.patch b/lang/python/python-cryptography/patches/001-Update-ouroboros.patch deleted file mode 100644 index 93abe3a4f1..0000000000 --- a/lang/python/python-cryptography/patches/001-Update-ouroboros.patch +++ /dev/null @@ -1,13 +0,0 @@ -Fixes https://rustsec.org/advisories/RUSTSEC-2023-0042.html - ---- a/src/rust/Cargo.toml -+++ b/src/rust/Cargo.toml -@@ -15,7 +15,7 @@ cryptography-cffi = { path = "cryptograp - cryptography-x509 = { path = "cryptography-x509" } - cryptography-openssl = { path = "cryptography-openssl" } - pem = "1.1" --ouroboros = "0.15" -+ouroboros = "0.18" - openssl = "0.10.54" - openssl-sys = "0.9.88" - foreign-types-shared = "0.1"