python-cryptography: bump to 46.0.6
authorAlexandru Ardelean <redacted>
Sun, 29 Mar 2026 15:58:27 +0000 (15:58 +0000)
committerAlexandru Ardelean <redacted>
Sun, 5 Apr 2026 12:03:06 +0000 (15:03 +0300)
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 <redacted>
lang/python/python-cryptography/Makefile
lang/python/python-cryptography/patches/001-Update-ouroboros.patch [deleted file]

index 0816b93ca5b7ba3b7cbef8926c25aa861bda2b80..93c88a11bf7e216d32bff4ebfd04b4fd3ce120a3 100644 (file)
@@ -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:=Alexandru Ardelean <ardeleanalex@gmail.com>
 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 (file)
index 93abe3a..0000000
+++ /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"
git clone https://git.99rst.org/PROJECT