mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
4376dbbb58
FLAVOR is the current port's flavor, it should not be used outside of this scope. Sponsored by: Absolight
36 lines
951 B
Makefile
36 lines
951 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= pyjwt
|
|
PORTVERSION= 1.4.0
|
|
CATEGORIES= www python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= PyJWT-${PORTVERSION}
|
|
|
|
MAINTAINER= terje@elde.net
|
|
COMMENT= JSON Web Token implementation in Python
|
|
|
|
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}pycrypto>=0:security/py-pycrypto@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= distutils concurrent autoplist
|
|
|
|
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} && ${PYTHON_CMD} -m pytest -c /dev/null -v -rs
|
|
|
|
.include <bsd.port.mk>
|