openbsd-ports/security/py-PyNaCl/Makefile
2022-03-11 19:53:16 +00:00

40 lines
787 B
Makefile

COMMENT = Python binding to the NaCl library
MODPY_EGG_VERSION = 1.4.0
DISTNAME = PyNaCl-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 4
CATEGORIES = security
HOMEPAGE = https://github.com/pyca/pynacl/
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
# Apache 2.0
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR = python3
WANTLIB += ${MODPY_WANTLIB} pthread sodium
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = devel/py-cffi${MODPY_FLAVOR} \
devel/py-wheel${MODPY_FLAVOR}
LIB_DEPENDS = security/libsodium
TEST_DEPENDS = devel/py-hypothesis${MODPY_FLAVOR}
MAKE_ENV += SODIUM_INSTALL="system"
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/bindings/build.py
.include <bsd.port.mk>