python-charset-normalizer: Update to 3.3.2
authorJeffery To <[email protected]>
Mon, 30 Oct 2023 11:28:50 +0000 (19:28 +0800)
committerRosen Penev <[email protected]>
Fri, 3 Nov 2023 01:45:45 +0000 (18:45 -0700)
This also updates the test.sh script to use an assert.

Signed-off-by: Jeffery To <[email protected]>
lang/python/python-charset-normalizer/Makefile
lang/python/python-charset-normalizer/test.sh

index 6e88357d22a0b9b16a2548116f39a3f82e5558a1..4ba811e9a8644c6dfc4309da42bc4f88e597c696 100644 (file)
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-charset-normalizer
-PKG_VERSION:=3.3.0
+PKG_VERSION:=3.3.2
 PKG_RELEASE:=1
 
 PYPI_NAME:=charset-normalizer
-PKG_HASH:=63563193aec44bce707e0c5ca64ff69fa72ed7cf34ce6e11d5127555756fd2f6
+PKG_HASH:=f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
index b1b2f7996883cc0bdd69dbc8337b9bf42548df30..398b017c5f04c42d619f085743c8a15e4e947aa6 100644 (file)
@@ -2,11 +2,12 @@
 
 [ "$1" = python3-charset-normalizer ] || exit 0
 
-python3 - << EOF
-import sys
+python3 - << 'EOF'
+
 from charset_normalizer import from_bytes
 s = 'Bсеки човек има право на образование.'
 byte_str = s.encode('cp1251')
 result = from_bytes(byte_str).best()
-sys.exit(0 if str(result) == s else 1)
+assert str(result) == s
+
 EOF