diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-12-04 14:17:36 +0800 |
|---|---|---|
| committer | Tianling Shen <cnsztl@gmail.com> | 2023-12-07 15:07:18 +0800 |
| commit | 4e60ea6d3d59fbdd13402f26b843a26e884c308a (patch) | |
| tree | 631086a82a06494e92854f2433142013503b9c9f /lang/python | |
| parent | 06d839d9ca0e375fe7e8b6df3649619c19913610 (diff) | |
python-bcrypt: Update to 4.1.1
This also updates the test.sh script to use an assert.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python')
| -rw-r--r-- | lang/python/python-bcrypt/Makefile | 4 | ||||
| -rw-r--r-- | lang/python/python-bcrypt/test.sh | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lang/python/python-bcrypt/Makefile b/lang/python/python-bcrypt/Makefile index 267f59f34..da5951b8d 100644 --- a/lang/python/python-bcrypt/Makefile +++ b/lang/python/python-bcrypt/Makefile @@ -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 diff --git a/lang/python/python-bcrypt/test.sh b/lang/python/python-bcrypt/test.sh index 9443614f4..0f59e743f 100644 --- a/lang/python/python-bcrypt/test.sh +++ b/lang/python/python-bcrypt/test.sh @@ -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 |
