Skip to content

Commit

Permalink
security/py-argon2-cffi: Update to 21.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed May 13, 2022
1 parent 39ebaad commit 0950d88
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 47 deletions.
34 changes: 17 additions & 17 deletions security/py-argon2-cffi/Makefile
@@ -1,35 +1,35 @@
PORTNAME= argon2-cffi
PORTVERSION= 19.1.0
PORTVERSION= 21.3.0
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Secure Argon2 password hashing algorithm

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR}
LIB_DEPENDS= libargon2.so:security/libargon2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}argon2-cffi-bindings>=0:security/py-argon2-cffi-bindings@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=5.0.2:devel/py-coverage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR}

USES= python:3.6+ localbase
USE_PYTHON= autoplist distutils
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils

MAKE_ENV+= ARGON2_CFFI_USE_SYSTEM=1
NO_ARCH= yes

PYDISTUTILS_BUILD_TARGET= build_ext
PYDISTUTILS_BUILDARGS+= --inplace
.include <bsd.port.pre.mk>

post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/argon2/*.so
.if ${PYTHON_REL} < 30800
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
.endif

post-patch:
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py

do-test:
@cd ${WRKSRC} && PYTHONPATH=src ${PYTHON_CMD} -m pytest -v -rs
cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} ${PYTHON_CMD} -m pytest -rs -v

.include <bsd.port.mk>
.include <bsd.port.post.mk>
6 changes: 3 additions & 3 deletions security/py-argon2-cffi/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1559532624
SHA256 (argon2_cffi-19.1.0.tar.gz) = 81548a27b919861040cb928a350733f4f9455dd67c7d1ba92eb5960a1d7f8b26
SIZE (argon2_cffi-19.1.0.tar.gz) = 1808120
TIMESTAMP = 1652122691
SHA256 (argon2-cffi-21.3.0.tar.gz) = d384164d944190a7dd7ef22c6aa3ff197da12962bd04b17f64d4e93d934dba5b
SIZE (argon2-cffi-21.3.0.tar.gz) = 38446
22 changes: 0 additions & 22 deletions security/py-argon2-cffi/files/patch-tests_test__low__level.py

This file was deleted.

45 changes: 45 additions & 0 deletions security/py-argon2-cffi/files/setup.py
@@ -0,0 +1,45 @@
#!/usr/bin/env python
# setup.py generated by flit for tools that don't yet use PEP 517

from distutils.core import setup

packages = \
['argon2']

package_data = \
{'': ['*']}

package_dir = \
{'': 'src'}

install_requires = \
['argon2-cffi-bindings']

extras_require = \
{":python_version < '3.7'": ['dataclasses'],
":python_version < '3.8'": ['typing-extensions'],
'dev': ['pre-commit',
'cogapp',
'tomli',
'coverage[toml]>=5.0.2',
'hypothesis',
'pytest',
'sphinx',
'sphinx-notfound-page',
'furo'],
'docs': ['sphinx', 'sphinx-notfound-page', 'furo'],
'tests': ['coverage[toml]>=5.0.2', 'hypothesis', 'pytest']}

setup(name='argon2-cffi',
version='%%PORTVERSION%%',
description='The secure Argon2 password hashing algorithm.',
author=None,
author_email='Hynek Schlawack <hs@ox.cx>',
url=None,
packages=packages,
package_data=package_data,
package_dir=package_dir,
install_requires=install_requires,
extras_require=extras_require,
python_requires='>=3.6',
)
9 changes: 4 additions & 5 deletions security/py-argon2-cffi/pkg-descr
@@ -1,6 +1,5 @@
Argon2 won the Password Hashing Competition and argon2_cffi is the simplest
way to use it in Python and PyPy:
Argon2 won the Password Hashing Competition and argon2-cffi is the simplest way
to use it in Python and PyPy.

passlib 1.7.0 and later offers Argon2 support using this library too.

WWW: https://argon2-cffi.readthedocs.io/
WWW: https://argon2-cffi.readthedocs.io/en/stable/
WWW: https://github.com/hynek/argon2-cffi

0 comments on commit 0950d88

Please sign in to comment.