summaryrefslogtreecommitdiff
path: root/devel/py-hishel0
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-hishel0')
-rw-r--r--devel/py-hishel0/Makefile31
-rw-r--r--devel/py-hishel0/distinfo3
-rw-r--r--devel/py-hishel0/pkg-descr18
3 files changed, 52 insertions, 0 deletions
diff --git a/devel/py-hishel0/Makefile b/devel/py-hishel0/Makefile
new file mode 100644
index 000000000000..854b616515fa
--- /dev/null
+++ b/devel/py-hishel0/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= hishel
+PORTVERSION= 0.1.5
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 0
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Persistent cache implementation for httpx and httpcore
+WWW= https://hishel.com/ \
+ https://github.com/karpetrosyan/hishel
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=4.9.0:devel/py-anyio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}anysqlite>=0.0.5:databases/py-anysqlite@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}httpx>=0.28.0:www/py-httpx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}msgpack>=1.1.2:devel/py-msgpack@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.14.1:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+PORTSCOUT= limit:^0\.
+
+.include <bsd.port.mk>
diff --git a/devel/py-hishel0/distinfo b/devel/py-hishel0/distinfo
new file mode 100644
index 000000000000..08dc971dde77
--- /dev/null
+++ b/devel/py-hishel0/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1761446632
+SHA256 (hishel-0.1.5.tar.gz) = 9d40c682cd94fd6e1394fb05713ae20a75ed8aeba6f5272380444039ce6257f2
+SIZE (hishel-0.1.5.tar.gz) = 75468
diff --git a/devel/py-hishel0/pkg-descr b/devel/py-hishel0/pkg-descr
new file mode 100644
index 000000000000..ceb0a2557ac4
--- /dev/null
+++ b/devel/py-hishel0/pkg-descr
@@ -0,0 +1,18 @@
+Hishel is a library that implements HTTP Caching for HTTPX and HTTP Core
+libraries in accordance with RFC 9111, the most recent caching specification.
+
+Features:
+- Persistence: Responses are cached in the persistent memory for later use.
+- Compatibility: It is completely compatible with your existing transports or
+ connection pools, whether they are default, custom, or provided by third-party
+ libraries.
+- Easy to use: You continue to use httpx while also enabling web cache.
+- Smart: Attempts to clearly implement RFC 9111, understands Vary, Etag,
+ Last-Modified, Cache-Control, and Expires headers, and handles response
+ re-validation automatically.
+- Configurable: You have complete control over how the responses are stored and
+ serialized.
+- From the package:
+ - Built-in support for File system, Redis, SQLite, and AWS S3 backends.
+ - Built-in support for JSON, YAML, and pickle serializers.
+- Very fast: Your requests will be even faster if there are no IO operations.