freebsd-ports/security/py-argon2-cffi/Makefile
Sunpoet Po-Chuan Hsieh b640d6c56f Use PY_ENUM34
With hat:	python
2019-06-23 19:21:44 +00:00

39 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= argon2-cffi
PORTVERSION= 19.1.0
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}
MAINTAINER= koobs@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} \
${PY_ENUM34} \
${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}
USES= python localbase
USE_PYTHON= autoplist distutils
MAKE_ENV+= ARGON2_CFFI_USE_SYSTEM=1
PYDISTUTILS_BUILD_TARGET= build_ext
PYDISTUTILS_BUILDARGS+= --inplace
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/argon2/*.so
do-test:
@cd ${WRKSRC} && PYTHONPATH=src ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.mk>