summaryrefslogtreecommitdiff
path: root/security/py-certipy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/py-certipy/Makefile')
-rw-r--r--security/py-certipy/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/security/py-certipy/Makefile b/security/py-certipy/Makefile
new file mode 100644
index 000000000000..85a58c2c49ba
--- /dev/null
+++ b/security/py-certipy/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= certipy
+PORTVERSION= 0.2.2
+CATEGORIES= security python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Utility to create and sign CAs and certificates
+WWW= https://github.com/LLNL/certipy
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=7:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flask>0:www/py-flask@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist concurrent pytest
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest certipy/test/ -v
+
+# tests as of 0.2.2: 7 passed, 1 warning in 8.94s
+
+.include <bsd.port.mk>