File: fix-cryptodome-import.patch

package info (click to toggle)
python-aioswitcher 6.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,556 kB
  • sloc: python: 4,913; makefile: 8
file content (24 lines) | stat: -rw-r--r-- 642 bytes parent folder | 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
Description: Fix cryptodome import
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2026-01-10

---
 src/aioswitcher/device/tools.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/aioswitcher/device/tools.py b/src/aioswitcher/device/tools.py
index d391a65..bc9f822 100644
--- a/src/aioswitcher/device/tools.py
+++ b/src/aioswitcher/device/tools.py
@@ -23,8 +23,8 @@
 from struct import pack
 
 import aiohttp
-from Crypto.Cipher import AES
-from Crypto.Util.Padding import unpad
+from Cryptodome.Cipher import AES
+from Cryptodome.Util.Padding import unpad
 
 from ..device import DeviceType