git: 5cf0d90c7572 - main - devel/py-limits: add new port

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Mon, 19 Feb 2024 21:04:28 UTC
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5cf0d90c757278b5c38c9b7c7dd90213a176b5d2

commit 5cf0d90c757278b5c38c9b7c7dd90213a176b5d2
Author:     Dries Michiels <driesm@FreeBSD.org>
AuthorDate: 2024-02-18 15:28:16 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2024-02-19 21:04:19 +0000

    devel/py-limits: add new port
    
    Rate limiting using various strategies and storage backends
    suchh as redis & memcached.
---
 www/Makefile            |  1 +
 www/py-limits/Makefile  | 23 +++++++++++++++++++++++
 www/py-limits/distinfo  |  3 +++
 www/py-limits/pkg-descr |  5 +++++
 4 files changed, 32 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 4e3ab2b78769..44c67c184f35 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1747,6 +1747,7 @@
     SUBDIR += py-lektor
     SUBDIR += py-lesscpy
     SUBDIR += py-libsass
+    SUBDIR += py-limits
     SUBDIR += py-livereload
     SUBDIR += py-mechanicalsoup
     SUBDIR += py-mechanize
diff --git a/www/py-limits/Makefile b/www/py-limits/Makefile
new file mode 100644
index 000000000000..0f0903fc4012
--- /dev/null
+++ b/www/py-limits/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	limits
+PORTVERSION=	3.9.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	driesm@FreeBSD.org
+COMMENT=	Perform rate limiting with commonly used storage backends
+WWW=		https://github.com/alisaifee/limits
+
+LICENSE=	MIT
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}deprecated>=1.2:devel/py-deprecated@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}importlib-resources>=1.3:devel/py-importlib-resources@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=21,<24:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=0.8:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-limits/distinfo b/www/py-limits/distinfo
new file mode 100644
index 000000000000..84d3a9feb1a0
--- /dev/null
+++ b/www/py-limits/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708269916
+SHA256 (limits-3.9.0.tar.gz) = 7b44aa4d05c539276928372681190136914958cccbb99c30ecc5df72a179661a
+SIZE (limits-3.9.0.tar.gz) = 69561
diff --git a/www/py-limits/pkg-descr b/www/py-limits/pkg-descr
new file mode 100644
index 000000000000..027cec87feac
--- /dev/null
+++ b/www/py-limits/pkg-descr
@@ -0,0 +1,5 @@
+Rate limiting using various strategies and storage backends
+such as redis & memcached. Different strategies are supported:
+	- Fixed Window
+	- Fixed Window (Elastic)
+	- Moving Window