19 Commits

Author SHA1 Message Date
Alexandru Ardelean 903d8a3d07 python-cryptography: update to 48.0.0 + backport cross-include fix
Bump from 46.0.7 to the current 48.0.0 release. Notable upstream
changes since 46.0.7:

- 48.0.0 drops Python 3.8 support (requires 3.9+); raises
  Py_LIMITED_API floor to 0x030900f0.
- Adds ML-KEM / ML-DSA post-quantum primitives via OpenSSL 3.5.0+
  (in addition to existing AWS-LC / BoringSSL paths).
- BACKWARDS INCOMPATIBLE: stricter X.509 CRL signature-algorithm
  matching (mismatched inner/outer algs now raise ValueError at parse
  time).
- Drops 32-bit Windows wheels and ships macOS only on arm64.

Replace the old downstream cross-compile fix with a backport of the
upstream-merged version from pyca/cryptography PR #14904
(commit 5d072cb2a685, scheduled for the release after 48.0.0).

Release notes:
https://cryptography.io/en/latest/changelog/#v48-0-0

Fixes: https://github.com/openwrt/packages/issues/29521

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-05-29 06:41:17 +03:00
Alexandru Ardelean 733123acf7 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 <alex@shruggie.ro>
2026-04-05 15:03:06 +03:00
Jeffery To 9fdff3ea94 python-cryptography: Update to 41.0.4
This includes a patch to update the version of ouroboros (Rust crate)
used, to fix RUSTSEC-2023-0042[1]. Upstream has switch from ouroboros to
self_cell so this patch should only be necessary for cryptography 41.

[1]: https://rustsec.org/advisories/RUSTSEC-2023-0042.html

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-09-27 16:40:55 -07:00
Jeffery To 0b5091bbff python-cryptography: Update patch to disable Rust
This extends the patch to also apply for pyproject.toml-based builds.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-04-24 16:18:14 +08:00
Jeffery To 9e3b7d7883 python-cryptography: Fix failing build
Fixes https://github.com/openwrt/packages/issues/18876.
Fixes https://github.com/openwrt/packages/issues/18879.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2022-07-07 17:35:41 +08:00
Alexandru Ardelean 01d1b4581e python-cryptography: bump to version 3.4.7
Dropped patches:
  0004-Replace-EVP_CIPHER_CTX_cleanup-with-EVP_CIPHER_CTX_r.patch
  0005-Switch-get_-Update-APIs-to-get0.patch

Reworked patches:
  0001-Add-new-ASN1_STRING_get0_data-API.patch
  0006-Add-X509_STORE_CTX_trusted_stack-compatibility-macro.patch
These 2 require that we keep only the CUSTOMIZATIONS stuff for now. Maybe
later we can drop this.

Ran 'make package/python-cryptography/refresh'.

Added patch:
  0004-disable-rust.patch
upstream did a sloppy job with the CRYPTOGRAPHY_DONT_BUILD_RUST logic; we
need to patch it, to make sure the setuptools-rust isn't installed.
We may need to carry this patch in our tree for a bit longer than upstream,
because in newer versions, CRYPTOGRAPHY_DONT_BUILD_RUST logic gets removed.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-06-17 19:27:29 +03:00
Alexandru Ardelean e4303a3d28 python-cryptography: bump to version 3.3.1
Regenerated patches from:
  https://github.com/pyca/cryptography/pull/4920

The patch names were kept as generated via 'git format-patch 3.3.1..'
And ran through quilt.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-12-16 08:45:36 +02:00
Alexandru Ardelean a9862edad7 python-cryptography: bump to version 3.2.1
Also refreshed patches.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-11-02 15:57:58 +02:00
Rosen Penev fcd9812bfd python-cryptography: fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-09-20 18:33:58 -07:00
Jeffery To b6eef2af19 python-cryptography: Update to 3.0
Also:
* Remove patches that are included in the update
* Replace the python3 dependency with a smaller list (python3-urllib is
  needed because it is a dependency of python3-email)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-07-27 05:40:30 +08:00
Jeffery To 8659757df8 python-cryptography: Update to 2.9, remove setup patch
Since cffi is installed by HOST_PYTHON3_PACKAGE_BUILD_DEPENDS, it
shouldn't be necessary to clear setup_requirements anymore.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-06 15:54:04 +08:00
Rosen Penev 08599312d4 python-cryptography: Remove NPN
Upstream backport. It seems the holdup is on python-twisted.

Without this, it fails with
SSL_get0_next_proto_negotiated: symbol not found

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-07-02 11:36:18 -07:00
Alexandru Ardelean c2fe5fae42 python-cryptography: bump to version 2.5
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2019-02-12 12:39:54 +02:00
Rosen Penev 8e25b4b859 python-crypgoraphy: Update to 2.4.2
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-12-01 11:02:14 -08:00
Rosen Penev 340c3895f5 python-cryptography: Update to 2.4.1
Replaced DTLS patch with upstreamed one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-11-18 18:23:48 -08:00
Alexandru Ardelean 81894aa414 python-cryptography: bump to version 2.2.2
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2018-06-11 12:02:40 +03:00
Jeffery To f47dfab5ae python-cryptography: update to 2.1.4, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-01-10 19:55:42 +08:00
Alexandru Ardelean d062793042 python-cryptography: bump to version 2.0.3
The dependency has changed from needing `pyasn1`
to needing `asn1crypto`.
Oh well...

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-08-11 17:09:15 +03:00
Alexandru Ardelean 68312f49c0 python packages: move all things python under lang/python
I admit this may be be a bit aggressive, but the lang
folder is getting cluttered/filled up with Python, PHP, Perl,
Ruby, etc. packages.

Makes sense to try to group them into per-lang folders.

I took the Pythons.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-05-17 16:51:14 +03:00