From: Jan Pavlinec Date: Fri, 14 May 2021 10:18:46 +0000 (+0200) Subject: python-cryptodomex: update to version 3.10.1 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e2b25c503630461dbcdc17fa381b83ed94334819;p=feed%2Fpackages.git python-cryptodomex: update to version 3.10.1 Signed-off-by: Jan Pavlinec (cherry picked from commit d6cb4edb4ac16eefe697976708ea79d748f44cb1) --- diff --git a/lang/python/python-cryptodomex/Makefile b/lang/python/python-cryptodomex/Makefile index 562122cf51..7cc4c530fb 100644 --- a/lang/python/python-cryptodomex/Makefile +++ b/lang/python/python-cryptodomex/Makefile @@ -5,11 +5,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-cryptodomex -PKG_VERSION:=3.9.7 -PKG_RELEASE:=2 +PKG_VERSION:=3.10.1 +PKG_RELEASE:=1 PYPI_NAME:=pycryptodomex -PKG_HASH:=50163324834edd0c9ce3e4512ded3e221c969086e10fdd5d3fdcaadac5e24a78 +PKG_HASH:=541cd3e3e252fb19a7b48f420b798b53483302b7fe4d9954c947605d0a263d62 PKG_LICENSE:=BSD-2-Clause PKG_LICENSE_FILES:=LICENSE.rst diff --git a/lang/python/python-cryptodomex/patches/001-fix-libgmp-loading.patch b/lang/python/python-cryptodomex/patches/001-fix-libgmp-loading.patch index 379c40c5a2..da4ca52b46 100644 --- a/lang/python/python-cryptodomex/patches/001-fix-libgmp-loading.patch +++ b/lang/python/python-cryptodomex/patches/001-fix-libgmp-loading.patch @@ -1,8 +1,8 @@ --- a/lib/Cryptodome/Math/_IntegerGMP.py +++ b/lib/Cryptodome/Math/_IntegerGMP.py -@@ -92,7 +92,7 @@ gmp_defs = """typedef unsigned long UNIX - int __gmpz_divisible_ui_p (const mpz_t n, UNIX_ULONG d); - """ +@@ -95,7 +95,7 @@ gmp_defs = """typedef unsigned long UNIX + if sys.platform == "win32": + raise ImportError("Not using GMP on Windows") -lib = load_lib("gmp", gmp_defs) +lib = load_lib("libgmp.so.10", gmp_defs) diff --git a/lang/python/python-cryptodomex/patches/002-omit-tests.patch b/lang/python/python-cryptodomex/patches/002-omit-tests.patch index 37a922c54d..457e785ca6 100644 --- a/lang/python/python-cryptodomex/patches/002-omit-tests.patch +++ b/lang/python/python-cryptodomex/patches/002-omit-tests.patch @@ -1,7 +1,7 @@ --- a/setup.py +++ b/setup.py -@@ -301,6 +301,9 @@ package_data = { - ], +@@ -275,6 +275,9 @@ package_data = { + "Crypto.Util" : [ "*.pyi" ], } +packages = [i for i in packages if not i.startswith('Crypto.SelfTest')]