| 1 |
From: YOKOTA Hiroshi <[email protected]> |
| 2 |
Date: Mon, 11 Jul 2022 21:28:57 +0900 |
| 3 |
Subject: Debian uses "pycryptodomex" instead of "prcryptodome" |
| 4 |
|
| 5 |
Forwarded: not-needed |
| 6 |
|
| 7 |
Debian uses Cryptdome class (pycryptodomex) for cipher functions. |
| 8 |
Cryptodome class can be replacement for old Crypto class (prcryptodome), |
| 9 |
but Debian dose not replace this class yet. |
| 10 |
|
| 11 |
So, this hack is not needed yet. |
| 12 |
--- |
| 13 |
src/calibre/constants.py | 4 ---- |
| 14 |
1 file changed, 4 deletions(-) |
| 15 |
|
| 16 |
diff --git a/src/calibre/constants.py b/src/calibre/constants.py |
| 17 |
index 47303cd..8905267 100644 |
| 18 |
--- a/src/calibre/constants.py |
| 19 |
+++ b/src/calibre/constants.py |
| 20 |
@@ -215,10 +215,6 @@ class DeVendor: |
| 21 |
if fullname == 'PyQt5': |
| 22 |
return ModuleSpec(fullname, DeVendorLoader('qt')) |
| 23 |
return ModuleSpec(fullname, DeVendorLoader('qt.webengine' if 'QWebEngine' in fullname else 'qt.core')) |
| 24 |
- if fullname.startswith('Cryptodome'): |
| 25 |
- # this is needed for py7zr which uses pycryptodomex instead of |
| 26 |
- # pycryptodome for some reason |
| 27 |
- return ModuleSpec(fullname, DeVendorLoader(fullname.replace('dome', '', 1))) |
| 28 |
|
| 29 |
|
| 30 |
class ExtensionsPackageLoader(Loader): |