python-chardet: bump to 7.0.1

Full release notes:
https://github.com/chardet/chardet/releases/tag/7.0.1

Add 'python3-codecs' as dependency. No idea when (or if) this was
ever needed, but it became obvious after test.sh was added.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-03-11 16:38:46 +02:00
committed by Alexandru Ardelean
parent a268b500d9
commit 6e014ede19
2 changed files with 23 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
[ "$1" = python3-chardet ] || exit 0
python3 - << 'EOF'
import chardet
result = chardet.detect(b'Hello, World!')
assert result['encoding'] is not None
result = chardet.detect('Привет мир'.encode('utf-8'))
assert result['encoding'] is not None
EOF