summaryrefslogtreecommitdiff
path: root/lang/python/python-cryptography/patches/0004-disable-rust.patch
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-09-13 12:33:51 +0800
committerRosen Penev <rosenp@gmail.com>2023-09-27 16:40:55 -0700
commit9fdff3ea94662653188c3902840e97c35e9f138f (patch)
treef8c0a97f7addc1c757a0171736d0782f82e8bdfd /lang/python/python-cryptography/patches/0004-disable-rust.patch
parent4d43be8549c8240f5039040fd1efd44aa2eb61fa (diff)
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>
Diffstat (limited to 'lang/python/python-cryptography/patches/0004-disable-rust.patch')
-rw-r--r--lang/python/python-cryptography/patches/0004-disable-rust.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/lang/python/python-cryptography/patches/0004-disable-rust.patch b/lang/python/python-cryptography/patches/0004-disable-rust.patch
deleted file mode 100644
index bf3010bb0..000000000
--- a/lang/python/python-cryptography/patches/0004-disable-rust.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -6,7 +6,6 @@ requires = [
- "wheel",
- # Must be kept in sync with the `setup_requirements` in `setup.py`
- "cffi>=1.12; platform_python_implementation != 'PyPy'",
-- "setuptools-rust>=0.11.4",
- ]
- build-backend = "setuptools.build_meta"
-
---- a/setup.py
-+++ b/setup.py
-@@ -11,7 +11,7 @@ import sys
- from setuptools import find_packages, setup
-
- try:
-- from setuptools_rust import RustExtension
-+ pass
- except ImportError:
- print(
- """
-@@ -43,9 +43,9 @@ with open(os.path.join(src_dir, "cryptog
- # `pyproject.toml`
- setuptools_rust = "setuptools-rust>=0.11.4"
- install_requirements = ["cffi>=1.12"]
--setup_requirements = install_requirements + [setuptools_rust]
-+setup_requirements = install_requirements
-
--if os.environ.get("CRYPTOGRAPHY_DONT_BUILD_RUST"):
-+if True:
- rust_extensions = []
- else:
- rust_extensions = [