e80bca6425
py-pyjwt1 only uses expired security/py-pycrypto as a test dependency and according to the source code it is not even mentioned as a requirement, but according to the port Makefile some tests are skipped without it.
37 lines
1.0 KiB
Makefile
37 lines
1.0 KiB
Makefile
PORTNAME= pyjwt1
|
|
PORTVERSION= 1.7.1
|
|
CATEGORIES= www python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= PyJWT-${PORTVERSION}
|
|
|
|
MAINTAINER= terje@elde.net
|
|
COMMENT= JSON Web Token implementation in Python
|
|
WWW= https://github.com/progrium/pyjwt
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
# Some tests are skipped without pycrypto, but its not
|
|
# referenced as a requirement anymore.
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR}
|
|
|
|
USES= python:3.6+
|
|
USE_PYTHON= distutils concurrent autoplist
|
|
|
|
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}-pyjwt
|
|
|
|
OPTIONS_DEFINE= RSASSA
|
|
|
|
RSASSA_DESC= RSASSA-PKCS1 v1.5 signature support
|
|
RSASSA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR}
|
|
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
|
|
|
|
.include <bsd.port.mk>
|