32 lines
978 B
Makefile
32 lines
978 B
Makefile
# $NetBSD: Makefile,v 1.3 2020/05/17 19:34:12 adam Exp $
|
|
|
|
DISTNAME= argon2-cffi-20.1.0
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= security python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=a/argon2-cffi/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://argon2-cffi.readthedocs.io/
|
|
COMMENT= Secure Argon2 password hashing algorithm
|
|
LICENSE= mit
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-cffi>=1.0.0:../../devel/py-cffi
|
|
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
|
|
|
|
PYTHON_VERSIONED_DEPENDENCIES= test:test
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
.if ${_PYTHON_VERSION} == 27
|
|
DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
|
|
.endif
|
|
|
|
MAKE_ENV+= ARGON2_CFFI_USE_SYSTEM=1
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../lang/python/versioned_dependencies.mk"
|
|
.include "../../security/argon2/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|