Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security/py-argon2-cffi-bindings: Add py-argon2-cffi-bindings 21.2.0
argon2-cffi-bindings provides low-level CFFI bindings to the Argon2 password hashing algorithm including a vendored version of them. WWW: https://github.com/hynek/argon2-cffi-bindings
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> | ||
|
||
PORTNAME= argon2-cffi-bindings | ||
PORTVERSION= 21.2.0 | ||
CATEGORIES= security python | ||
MASTER_SITES= CHEESESHOP | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
|
||
MAINTAINER= sunpoet@FreeBSD.org | ||
COMMENT= Low-level CFFI bindings for Argon2 | ||
|
||
LICENSE= MIT | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.1:devel/py-cffi@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.2:devel/py-setuptools_scm@${PY_FLAVOR} | ||
LIB_DEPENDS= libargon2.so:security/libargon2 | ||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.1:devel/py-cffi@${PY_FLAVOR} | ||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR} | ||
|
||
USES= localbase python:3.6+ | ||
USE_PYTHON= autoplist concurrent distutils | ||
|
||
MAKE_ENV= ARGON2_CFFI_USE_SYSTEM=1 | ||
|
||
post-patch: | ||
# Clean up bundled libraries | ||
@${RM} -r ${WRKSRC}/extras/ | ||
|
||
post-install: | ||
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + | ||
|
||
do-test: | ||
cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} -m pytest -rs -v | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1652122533 | ||
SHA256 (argon2-cffi-bindings-21.2.0.tar.gz) = bb89ceffa6c791807d1305ceb77dbfacc5aa499891d2c55661c6459651fc39e3 | ||
SIZE (argon2-cffi-bindings-21.2.0.tar.gz) = 1779911 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
argon2-cffi-bindings provides low-level CFFI bindings to the Argon2 password | ||
hashing algorithm including a vendored version of them. | ||
|
||
WWW: https://github.com/hynek/argon2-cffi-bindings |