Package: py7zr / 0.11.3+dfsg-1+deb11u1

use_pycryptodome.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/py7zr/compressor.py
+++ b/py7zr/compressor.py
@@ -29,8 +29,8 @@ from abc import ABC, abstractmethod
 from enum import Enum
 from typing import Any, Dict, List, Optional, Tuple, Union
 
-from Crypto.Cipher import AES
-from Crypto.Random import get_random_bytes
+from Cryptodome.Cipher import AES
+from Cryptodome.Random import get_random_bytes
 
 from py7zr.exceptions import PasswordRequired, UnsupportedCompressionMethodError
 from py7zr.helpers import Buffer, BufferedRW, calculate_crc32, calculate_key
--- a/tests/test_extra_codecs.py
+++ b/tests/test_extra_codecs.py
@@ -5,7 +5,7 @@ import struct
 import zlib
 
 import pytest
-from Crypto.Cipher import AES
+from Cryptodome.Cipher import AES
 
 import py7zr
 import py7zr.compressor