python-cryptography: Fix failing build
authorJeffery To <redacted>
Thu, 7 Jul 2022 09:35:41 +0000 (17:35 +0800)
committerJeffery To <redacted>
Thu, 7 Jul 2022 09:35:41 +0000 (17:35 +0800)
Fixes https://github.com/openwrt/packages/issues/18876.
Fixes https://github.com/openwrt/packages/issues/18879.

Signed-off-by: Jeffery To <redacted>
lang/python/python-cryptography/Makefile
lang/python/python-cryptography/patches/0004-disable-rust.patch

index 7284f2a1069ce1bfa149c5dad0d12d952f23c6b3..f9805d1b381d23c9e189677a1ab9d38f720b8109 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-cryptography
 PKG_VERSION:=3.4.8
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PYPI_NAME:=cryptography
 PKG_HASH:=94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c
index b005851cb6e4ad3731abdeb802199c2c0efe01f3..81c45a44df6eef26d9b7afb0a40e4add5cbd240f 100644 (file)
@@ -9,9 +9,12 @@
  except ImportError:
      print(
          """
-@@ -45,7 +45,7 @@ setuptools_rust = "setuptools-rust>=0.11
+@@ -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 + [setuptools_rust]
++setup_requirements = install_requirements
  
 -if os.environ.get("CRYPTOGRAPHY_DONT_BUILD_RUST"):
 +if True:
git clone https://git.99rst.org/PROJECT