python-cryptodomex: update to version 3.10.1
authorJan Pavlinec <jan.pavlinec@nic.cz>
Fri, 14 May 2021 10:18:46 +0000 (12:18 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Thu, 27 May 2021 15:04:35 +0000 (17:04 +0200)
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
(cherry picked from commit d6cb4edb4ac16eefe697976708ea79d748f44cb1)

lang/python/python-cryptodomex/Makefile
lang/python/python-cryptodomex/patches/001-fix-libgmp-loading.patch
lang/python/python-cryptodomex/patches/002-omit-tests.patch

index 562122cf5170bfe8c20c90b28d2ae07065cae183..7cc4c530fb244b29e18b210c3b05fa8f4b851d84 100644 (file)
@@ -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
index 379c40c5a256cac3c7fae03eda6e519c45589ccc..da4ca52b466052a45e6938b0cb0a677f9dd64d0f 100644 (file)
@@ -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)
index 37a922c54dba7a043900bab83f9f53818d5fe100..457e785ca6814872de843fccd1c7fd6abe800a03 100644 (file)
@@ -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')]