ports/www/py-pyjwt1/Makefile
Po-Chuan Hsieh 3754fc5f19
*: Replace USES=pycryptography* with USE_PYTHON=cryptography{,_build,_test}
- Introduce USE_PYTHON=cryptography{,_build,_test}
- Switch all 96 ports from USES=pycryptography to with USE_PYTHON=cryptography{,_build,_test}
- Remove Mk/Uses/pycryptography.mk

PR:		273727
Approved by:	tcberner (portmgr)
Exp-run by:	antoine
2023-09-29 22:19:56 +08:00

35 lines
927 B
Makefile

PORTNAME= pyjwt1
PORTVERSION= 1.7.1
CATEGORIES= www python
MASTER_SITES= PYPI
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}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent cryptography_test distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}-pyjwt
OPTIONS_DEFINE= RSASSA
RSASSA_DESC= RSASSA-PKCS1 v1.5 signature support
RSASSA_USE= PYTHON=cryptography
NO_ARCH= yes
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
.include <bsd.port.mk>