git: 8ea48ecd7a43 - main - www/py-asgi-csrf: New port: ASGI middleware for protecting against CSRF attacks
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 Dec 2022 09:14:27 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8ea48ecd7a434d3659e77a076044306c53b78146
commit 8ea48ecd7a434d3659e77a076044306c53b78146
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-17 06:32:21 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-17 09:14:19 +0000
www/py-asgi-csrf: New port: ASGI middleware for protecting against CSRF attacks
---
www/Makefile | 1 +
www/py-asgi-csrf/Makefile | 27 +++++++++++++++++++++++++++
www/py-asgi-csrf/distinfo | 3 +++
www/py-asgi-csrf/pkg-descr | 1 +
4 files changed, 32 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index 348af08de223..29face5046f8 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1421,6 +1421,7 @@
SUBDIR += py-aiohttp_cors
SUBDIR += py-aioquic
SUBDIR += py-arxiv
+ SUBDIR += py-asgi-csrf
SUBDIR += py-asgiref
SUBDIR += py-autobahn
SUBDIR += py-azure-common
diff --git a/www/py-asgi-csrf/Makefile b/www/py-asgi-csrf/Makefile
new file mode 100644
index 000000000000..2ec52a2d6710
--- /dev/null
+++ b/www/py-asgi-csrf/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= asgi-csrf
+PORTVERSION= 0.9
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= ASGI middleware for protecting against CSRF attacks
+WWW= https://github.com/simonw/asgi-csrf
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}itsdangerous>0:security/py-itsdangerous@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}python-multipart>=0:www/py-python-multipart@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asgi-lifespan>0:devel/py-asgi-lifespan@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}httpx>0:www/py-httpx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}starlette>0:www/py-starlette@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= distutils autoplist pytest # setup.py has test dependencies, but there are no tests in the repository, see https://github.com/simonw/asgi-csrf/issues/23
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-asgi-csrf/distinfo b/www/py-asgi-csrf/distinfo
new file mode 100644
index 000000000000..a54b253c097a
--- /dev/null
+++ b/www/py-asgi-csrf/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1671254658
+SHA256 (asgi-csrf-0.9.tar.gz) = 6e9d3bddaeac1a8fd33b188fe2abc8271f9085ab7be6e1a7f4d3c9df5d7f741a
+SIZE (asgi-csrf-0.9.tar.gz) = 10300
diff --git a/www/py-asgi-csrf/pkg-descr b/www/py-asgi-csrf/pkg-descr
new file mode 100644
index 000000000000..90e8648237e8
--- /dev/null
+++ b/www/py-asgi-csrf/pkg-descr
@@ -0,0 +1 @@
+ASGI middleware for protecting against CSRF attacks.