1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

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)
This commit is contained in:
Goran Mekić 2022-01-26 16:31:52 +09:00 committed by Hiroki Tagato
parent 120e65ad68
commit ade72e60a0
5 changed files with 65 additions and 0 deletions

View File

@ -1669,6 +1669,7 @@
SUBDIR += py-httpretty
SUBDIR += py-httptools
SUBDIR += py-httpx
SUBDIR += py-httpx-oauth
SUBDIR += py-httpx-socks
SUBDIR += py-httpx013
SUBDIR += py-hyper

View File

@ -0,0 +1,29 @@
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>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1643132368
SHA256 (httpx-oauth-0.4.1.tar.gz) = ee777ee8c33ab521b8bee26158bed1c5eb709034559bd53442509e736458ffee
SIZE (httpx-oauth-0.4.1.tar.gz) = 15272

View File

@ -0,0 +1,28 @@
--- setup.py.orig 2022-01-25 17:47:55 UTC
+++ setup.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+# setup.py generated by flit for tools that don't yet use PEP 517
+
+from distutils.core import setup
+
+packages = \
+['httpx_oauth', 'httpx_oauth.clients', 'httpx_oauth.integrations']
+
+package_data = \
+{'': ['*']}
+
+install_requires = \
+['httpx >=0.18,<0.22', 'typing-extensions']
+
+setup(name='httpx-oauth',
+ version='0.4.1',
+ description='Async OAuth client using HTTPX.',
+ author='François Voron',
+ author_email='fvoron@gmail.com',
+ url='https://github.com/frankie567/httpx-oauth',
+ packages=packages,
+ package_data=package_data,
+ install_requires=install_requires,
+ python_requires='>=3.7',
+ )

View File

@ -0,0 +1,4 @@
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