aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Michiels <driesm@FreeBSD.org>2024-02-18 15:28:16 +0000
committerDries Michiels <driesm@FreeBSD.org>2024-02-19 21:04:19 +0000
commit5cf0d90c757278b5c38c9b7c7dd90213a176b5d2 (patch)
tree2dcd880f34731f25be55e2dd252a439abd5e754f
parentf6d3312844a3bd9b124e109a795a5aafe82ddf37 (diff)
downloadports-5cf0d90c757278b5c38c9b7c7dd90213a176b5d2.tar.gz
ports-5cf0d90c757278b5c38c9b7c7dd90213a176b5d2.zip
devel/py-limits: add new port
Rate limiting using various strategies and storage backends suchh as redis & memcached.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-limits/Makefile23
-rw-r--r--www/py-limits/distinfo3
-rw-r--r--www/py-limits/pkg-descr5
4 files changed, 32 insertions, 0 deletions
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