python-bcrypt: Update to 4.1.1
authorJeffery To <jeffery.to@gmail.com>
Mon, 4 Dec 2023 06:17:36 +0000 (14:17 +0800)
committerTianling Shen <cnsztl@gmail.com>
Thu, 7 Dec 2023 07:07:18 +0000 (15:07 +0800)
This also updates the test.sh script to use an assert.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python-bcrypt/Makefile
lang/python/python-bcrypt/test.sh

index 267f59f346341145e6217a6dbf96615a785175c3..da5951b8dc3e2efe987bbcf82b768fed7b7d4d39 100644 (file)
@@ -6,11 +6,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-bcrypt
-PKG_VERSION:=4.0.1
+PKG_VERSION:=4.1.1
 PKG_RELEASE:=1
 
 PYPI_NAME:=bcrypt
-PKG_HASH:=27d375903ac8261cfe4047f6709d16f7d18d39b1ec92aaf72af989552a650ebd
+PKG_HASH:=df37f5418d4f1cdcff845f60e747a015389fa4e63703c918330865e06ad80007
 
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
index 9443614f42a07abd5cae80cf84c788974164e10a..0f59e743f81569b45d2f9ddd2db7138ef4f27b22 100644 (file)
@@ -2,10 +2,11 @@
 
 [ "$1" = python3-bcrypt ] || exit 0
 
-python3 - << EOF
-import sys
+python3 - << 'EOF'
+
 import bcrypt
 password = b"super secret password"
 hashed = bcrypt.hashpw(password, bcrypt.gensalt())
-sys.exit(0 if bcrypt.checkpw(password, hashed) else 1)
+assert bcrypt.checkpw(password, hashed)
+
 EOF