File: fix-import-Cryptodome-not-Crypto.patch

package info (click to toggle)
python-oauth2client 4.1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,468 kB
  • sloc: python: 11,266; makefile: 170; sh: 51
file content (24 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Use the correct Cryptodome module
 A big thanks to Sebastian Ramacher for this patch.
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/971297
Forwarded: no
Last-Update: 2021-01-07

--- python-oauth2client-4.1.2.orig/oauth2client/_pycrypto_crypt.py
+++ python-oauth2client-4.1.2/oauth2client/_pycrypto_crypt.py
@@ -13,10 +13,10 @@
 # limitations under the License.
 """pyCrypto Crypto-related routines for oauth2client."""
 
-from Crypto.Hash import SHA256
-from Crypto.PublicKey import RSA
-from Crypto.Signature import PKCS1_v1_5
-from Crypto.Util.asn1 import DerSequence
+from Cryptodome.Hash import SHA256
+from Cryptodome.PublicKey import RSA
+from Cryptodome.Signature import PKCS1_v1_5
+from Cryptodome.Util.asn1 import DerSequence
 
 from oauth2client import _helpers