ports/www/py-httpx-oauth/Makefile
Goran Mekić ade72e60a0 www/py-httpx-oauth: add port: Async OAuth client using HTTPX
A generic OAuth2 class is provided to adapt to any OAuth2-compliant service.
Utilities are provided to ease the integration of an OAuth2 process in FastAPI.

WWW: https://github.com/frankie567/httpx-oauth

PR:		260880
Reported by:	Goran Mekić <meka@tilda.center> (new maintainer)
2022-01-26 16:31:52 +09:00

29 lines
803 B
Makefile

PORTNAME= httpx-oauth
DISTVERSION= 0.4.1
CATEGORIES= www devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= meka@tilda.center
COMMENT= Async OAuth client using HTTPX
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0:www/py-httpx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}respx>=0:www/py-respx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
USES= python:3.7+
USE_PYTHON= autoplist distutils
TEST_ENV= PYTHONPATH=${WRKSRC}/src
NO_ARCH= yes
# Tests fail with current ports
# do-test:
# cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
.include <bsd.port.mk>