Skip to content

Commit

Permalink
security/py-argon2-cffi-bindings: Add py-argon2-cffi-bindings 21.2.0
Browse files Browse the repository at this point in the history
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
sunpoet committed May 13, 2022
1 parent 4894727 commit e742e9f
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions security/Makefile
Expand Up @@ -822,6 +822,7 @@
SUBDIR += py-ailment
SUBDIR += py-angr
SUBDIR += py-argon2-cffi
SUBDIR += py-argon2-cffi-bindings
SUBDIR += py-artifacts
SUBDIR += py-asyncssh
SUBDIR += py-authlib
Expand Down
36 changes: 36 additions & 0 deletions security/py-argon2-cffi-bindings/Makefile
@@ -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>
3 changes: 3 additions & 0 deletions security/py-argon2-cffi-bindings/distinfo
@@ -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
4 changes: 4 additions & 0 deletions security/py-argon2-cffi-bindings/pkg-descr
@@ -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

0 comments on commit e742e9f

Please sign in to comment.