diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-09-05 06:02:25 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2023-09-05 06:02:25 +0800 |
| commit | 03f1f4b9bb426670ddf4b870ed4dfbe354e19fcf (patch) | |
| tree | 0467896122965a01ae567251976efc9a6389eb5d /lang/python/python-cryptodome/patches | |
| parent | 1e1b2051db47a82513f4eb4e9da892207785b7e2 (diff) | |
python-cryptodome: Update to 3.18.0, refresh patches
This also updates the list of dependencies.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python-cryptodome/patches')
| -rw-r--r-- | lang/python/python-cryptodome/patches/001-fix-libgmp-loading.patch | 6 | ||||
| -rw-r--r-- | lang/python/python-cryptodome/patches/002-omit-tests.patch | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lang/python/python-cryptodome/patches/001-fix-libgmp-loading.patch b/lang/python/python-cryptodome/patches/001-fix-libgmp-loading.patch index d7591100c..a0d9674b3 100644 --- a/lang/python/python-cryptodome/patches/001-fix-libgmp-loading.patch +++ b/lang/python/python-cryptodome/patches/001-fix-libgmp-loading.patch @@ -1,8 +1,8 @@ --- a/lib/Crypto/Math/_IntegerGMP.py +++ b/lib/Crypto/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); - """ +@@ -97,7 +97,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-cryptodome/patches/002-omit-tests.patch b/lang/python/python-cryptodome/patches/002-omit-tests.patch index 37a922c54..43e2cc3d8 100644 --- a/lang/python/python-cryptodome/patches/002-omit-tests.patch +++ b/lang/python/python-cryptodome/patches/002-omit-tests.patch @@ -1,7 +1,7 @@ --- a/setup.py +++ b/setup.py -@@ -301,6 +301,9 @@ package_data = { - ], +@@ -276,6 +276,9 @@ package_data = { + "Crypto.Util" : [ "*.pyi" ], } +packages = [i for i in packages if not i.startswith('Crypto.SelfTest')] |
