2014-09-17 03:25:45 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pyjwt
|
2016-02-26 11:44:33 +01:00
|
|
|
PORTVERSION= 1.4.0
|
2014-09-17 03:25:45 +02:00
|
|
|
CATEGORIES= www python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2016-02-26 11:44:33 +01:00
|
|
|
DISTNAME= PyJWT-${PORTVERSION}
|
2014-09-17 03:25:45 +02:00
|
|
|
|
2016-01-04 02:51:46 +01:00
|
|
|
MAINTAINER= terje@elde.net
|
2014-09-17 03:25:45 +02:00
|
|
|
COMMENT= JSON Web Token implementation in Python
|
|
|
|
|
|
|
|
LICENSE= MIT
|
2016-02-26 11:44:33 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
# Some tests are skipped without pycrypto, but its not
|
2016-05-19 12:57:35 +02:00
|
|
|
# referenced as a requirement anymore.
|
2018-06-20 19:05:41 +02:00
|
|
|
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}
|
2014-09-17 03:25:45 +02:00
|
|
|
|
2016-02-26 11:44:33 +01:00
|
|
|
USES= python
|
|
|
|
USE_PYTHON= distutils concurrent autoplist
|
2014-09-17 03:25:45 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= RSASSA
|
|
|
|
|
2016-02-26 11:44:33 +01:00
|
|
|
RSASSA_DESC= RSASSA-PKCS1 v1.5 signature support
|
2018-06-20 19:05:41 +02:00
|
|
|
RSASSA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR}
|
2016-02-26 11:44:33 +01:00
|
|
|
|
|
|
|
NO_ARCH= yes
|
2014-09-17 03:25:45 +02:00
|
|
|
|
2016-02-26 11:44:33 +01:00
|
|
|
do-test:
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -c /dev/null -v -rs
|
2014-09-17 03:25:45 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|