aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Langille <dvl@FreeBSD.org>2022-05-02 19:47:21 +0000
committerDan Langille <dvl@FreeBSD.org>2022-05-02 19:47:21 +0000
commit07e7bc67d26d7ec6ec0be2d9910e44bb6e6bc953 (patch)
tree18893b365fe87f3b64cd75ec53345aea94e3303f
parent979995168c2f4dec4dd67cd617639c1abf67f16e (diff)
www/httpx-gssapi: Add new port
A port of Requests GSSAPI to HTTPX which adds optional GSSAPI authentication support and supports mutual authentication.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-httpx-gssapi/Makefile20
-rw-r--r--www/py-httpx-gssapi/distinfo3
-rw-r--r--www/py-httpx-gssapi/pkg-descr14
4 files changed, 38 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index a87cbc05895e..afa01c803d58 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1677,6 +1677,7 @@
SUBDIR += py-httpretty
SUBDIR += py-httptools
SUBDIR += py-httpx
+ SUBDIR += py-httpx-gssapi
SUBDIR += py-httpx-oauth
SUBDIR += py-httpx-socks
SUBDIR += py-httpx013
diff --git a/www/py-httpx-gssapi/Makefile b/www/py-httpx-gssapi/Makefile
new file mode 100644
index 000000000000..5f296c74888e
--- /dev/null
+++ b/www/py-httpx-gssapi/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= httpx-gssapi
+PORTVERSION= 0.1.6
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dvl@FreeBSD.org
+COMMENT= Requests GSSAPI for HTTPX
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>0:www/py-httpx@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-httpx-gssapi/distinfo b/www/py-httpx-gssapi/distinfo
new file mode 100644
index 000000000000..669aa880fd16
--- /dev/null
+++ b/www/py-httpx-gssapi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1651259112
+SHA256 (httpx-gssapi-0.1.6.tar.gz) = f300f99a8e0b26e89756f2cd59d4c899ab0d80655b4200d59592bbeecc70f254
+SIZE (httpx-gssapi-0.1.6.tar.gz) = 30733
diff --git a/www/py-httpx-gssapi/pkg-descr b/www/py-httpx-gssapi/pkg-descr
new file mode 100644
index 000000000000..e5b59bfc76be
--- /dev/null
+++ b/www/py-httpx-gssapi/pkg-descr
@@ -0,0 +1,14 @@
+HTTPX is a full featured Python HTTP library with both sync and async APIs
+designed to be a next generation HTTP client for Python. This library is a
+port of Requests GSSAPI to HTTPX which adds optional GSSAPI authentication
+support and supports mutual authentication.
+
+Basic GET usage:
+
+>>> import httpx
+>>> from httpx_gssapi import HTTPSPNEGOAuth
+>>> r = httpx.get("http://example.org", auth=HTTPSPNEGOAuth())
+
+Both the sync and async HTTPX APIs should be fully supported.
+
+WWW: https://github.com/pythongssapi/httpx-gssapi