Browse Source

python-cryptodomex: update to version 3.10.1

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
lilik-openwrt-22.03
Jan Pavlinec 4 years ago
parent
commit
d6cb4edb4a
No known key found for this signature in database GPG Key ID: 60244CCEFB39E584
3 changed files with 8 additions and 8 deletions
  1. +3
    -3
      lang/python/python-cryptodomex/Makefile
  2. +3
    -3
      lang/python/python-cryptodomex/patches/001-fix-libgmp-loading.patch
  3. +2
    -2
      lang/python/python-cryptodomex/patches/002-omit-tests.patch

+ 3
- 3
lang/python/python-cryptodomex/Makefile View 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


+ 3
- 3
lang/python/python-cryptodomex/patches/001-fix-libgmp-loading.patch View 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)


+ 2
- 2
lang/python/python-cryptodomex/patches/002-omit-tests.patch View 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')]


Loading…
Cancel
Save