pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/py-passlib



Module Name:    pkgsrc
Committed By:   leot
Date:           Mon Jan  1 16:19:57 UTC 2024

Modified Files:
        pkgsrc/security/py-passlib: Makefile distinfo
Added Files:
        pkgsrc/security/py-passlib/patches: patch-passlib_handlers_bcrypt.py

Log Message:
py-passlib: Access actual bcrypt version

Recent bcrypt package no longer has __about__ field, the version is directly
under __version__.

Noticed via:

 python3 -c 'import passlib.apache'

PKGREVISION++


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/security/py-passlib/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/py-passlib/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/py-passlib/patches/patch-passlib_handlers_bcrypt.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/py-passlib/Makefile
diff -u pkgsrc/security/py-passlib/Makefile:1.10 pkgsrc/security/py-passlib/Makefile:1.11
--- pkgsrc/security/py-passlib/Makefile:1.10    Tue Jan  4 20:54:43 2022
+++ pkgsrc/security/py-passlib/Makefile Mon Jan  1 16:19:57 2024
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2022/01/04 20:54:43 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2024/01/01 16:19:57 leot Exp $
 
 DISTNAME=      passlib-1.7.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    security python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/passlib/}
 

Index: pkgsrc/security/py-passlib/distinfo
diff -u pkgsrc/security/py-passlib/distinfo:1.9 pkgsrc/security/py-passlib/distinfo:1.10
--- pkgsrc/security/py-passlib/distinfo:1.9     Tue Oct 26 11:17:48 2021
+++ pkgsrc/security/py-passlib/distinfo Mon Jan  1 16:19:57 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 11:17:48 nia Exp $
+$NetBSD: distinfo,v 1.10 2024/01/01 16:19:57 leot Exp $
 
 BLAKE2s (passlib-1.7.4.tar.gz) = 7007ebe597e6b68cd7a180195629a5531b5a4f80374c00c1166561c030c45084
 SHA512 (passlib-1.7.4.tar.gz) = 350bd6da5ac57e6c266ffe8bf9684c8c2cce3fc6b513eb6c7bc1b302d2d8a1b701e9c01c953782520a2ac37b7ec1f6d7bd5855f99f6ee0e2dbbf33f2d49a9530
 Size (passlib-1.7.4.tar.gz) = 689844 bytes
+SHA1 (patch-passlib_handlers_bcrypt.py) = f67386201a22d37dd502926a26d07741ded1daf1

Added files:

Index: pkgsrc/security/py-passlib/patches/patch-passlib_handlers_bcrypt.py
diff -u /dev/null pkgsrc/security/py-passlib/patches/patch-passlib_handlers_bcrypt.py:1.1
--- /dev/null   Mon Jan  1 16:19:57 2024
+++ pkgsrc/security/py-passlib/patches/patch-passlib_handlers_bcrypt.py Mon Jan  1 16:19:57 2024
@@ -0,0 +1,16 @@
+$NetBSD: patch-passlib_handlers_bcrypt.py,v 1.1 2024/01/01 16:19:57 leot Exp $
+
+Version is available under __version__, __about__ field no longer
+exists.
+
+--- passlib/handlers/bcrypt.py.orig    2024-01-01 16:12:38.252193463 +0000
++++ passlib/handlers/bcrypt.py
+@@ -617,7 +617,7 @@ class _BcryptBackend(_BcryptCommon):
+         except ImportError: # pragma: no cover
+             return False
+         try:
+-            version = _bcrypt.__about__.__version__
++            version = _bcrypt.__version__
+         except:
+             log.warning("(trapped) error reading bcrypt version", exc_info=True)
+             version = '<unknown>'



Home | Main Index | Thread Index | Old Index