Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2023 10:33:46 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6dc56803a1c8 - main - www/py-httpx-cache: Add py-httpx-cache 0.11.0
Message-ID:  <202307091033.369AXklA055457@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6dc56803a1c8e053109e2ff2753bdb0a62aad2f9

commit 6dc56803a1c8e053109e2ff2753bdb0a62aad2f9
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-07-09 10:10:50 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-07-09 10:15:55 +0000

    www/py-httpx-cache: Add py-httpx-cache 0.11.0
    
    httpx-cache is an implementation of the caching algorithms in httplib2 and
    CacheControl for use with httpx transport object.
---
 www/Makefile                                  |  1 +
 www/py-httpx-cache/Makefile                   | 33 +++++++++++++++++++++++++++
 www/py-httpx-cache/distinfo                   |  3 +++
 www/py-httpx-cache/files/patch-pyproject.toml | 17 ++++++++++++++
 www/py-httpx-cache/pkg-descr                  |  2 ++
 5 files changed, 56 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index d61b5bc6b317..83e890728211 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1685,6 +1685,7 @@
     SUBDIR += py-httpretty
     SUBDIR += py-httptools
     SUBDIR += py-httpx
+    SUBDIR += py-httpx-cache
     SUBDIR += py-httpx-gssapi
     SUBDIR += py-httpx-oauth
     SUBDIR += py-httpx-socks
diff --git a/www/py-httpx-cache/Makefile b/www/py-httpx-cache/Makefile
new file mode 100644
index 000000000000..99a51b820195
--- /dev/null
+++ b/www/py-httpx-cache/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	httpx-cache
+PORTVERSION=	0.11.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	httpx_cache-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Simple caching transport for httpx
+WWW=		https://obendidi.github.io/httpx-cache/ \
+		https://github.com/obendidi/httpx-cache
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiorwlock>=1.2<2:devel/py-aiorwlock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}anyio>=3.0<4:devel/py-anyio@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}attrs>=21.4:devel/py-attrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}fasteners>=0.16.3:devel/py-fasteners@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}httpx>=0.23:www/py-httpx@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}msgpack>=1.0<2:devel/py-msgpack@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+OPTIONS_DEFINE=	REDIS
+
+REDIS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}redis>=4.5<5:databases/py-redis@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/www/py-httpx-cache/distinfo b/www/py-httpx-cache/distinfo
new file mode 100644
index 000000000000..e0ff755e645d
--- /dev/null
+++ b/www/py-httpx-cache/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688166038
+SHA256 (httpx_cache-0.11.0.tar.gz) = de2614530f890444cf7947c6c91062a024a3ea9f786ce075ecf09742bc0739f1
+SIZE (httpx_cache-0.11.0.tar.gz) = 58406
diff --git a/www/py-httpx-cache/files/patch-pyproject.toml b/www/py-httpx-cache/files/patch-pyproject.toml
new file mode 100644
index 000000000000..52b91ef6c228
--- /dev/null
+++ b/www/py-httpx-cache/files/patch-pyproject.toml
@@ -0,0 +1,17 @@
+--- pyproject.toml.orig	2020-02-02 00:00:00 UTC
++++ pyproject.toml
+@@ -33,11 +33,11 @@ classifiers = [
+   "Programming Language :: Python :: 3 :: Only",
+ ]
+ dependencies = [
+-  "httpx~=0.23",
++  "httpx>=0.23",
+   "anyio~=3.0",
+   "msgpack~=1.0",
+-  "fasteners>=0.16.3,<0.18.0",
+-  "attrs>=21.4,<23.0",
++  "fasteners>=0.16.3",
++  "attrs>=21.4",
+   "aiorwlock~=1.2"
+ ]
+ 
diff --git a/www/py-httpx-cache/pkg-descr b/www/py-httpx-cache/pkg-descr
new file mode 100644
index 000000000000..e86551f98738
--- /dev/null
+++ b/www/py-httpx-cache/pkg-descr
@@ -0,0 +1,2 @@
+httpx-cache is an implementation of the caching algorithms in httplib2 and
+CacheControl for use with httpx transport object.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307091033.369AXklA055457>