From nobody Sat Dec 17 09:14:27 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZ0fC2qPyzZnMj; Sat, 17 Dec 2022 09:14:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZ0fC1x41z47jr; Sat, 17 Dec 2022 09:14:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671268467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y6lQfj3dYiaec85vO5bvoraYpdVv59544Va5LpXgxbM=; b=LE+rra6g9T6Si0fj2/ryovvgeRMNXxvViX/AwFOFGC87H8MNnTg1EPQ3px0973NvkO7hOC wUtRvxyc1RPs5n9zVJrLHdS1hmMdgJwhcxmaK+CfDUMUEihOvoUZiS0Oqio5JWH2JytzyU jzvdHvt954eFVAVNcP+mSSoEPCb2tsMEUBhUgHd9Eyek2kgbGpYTUBm+d4qiks/qomuGoQ H31szoFbOydhfIc0B/ABGm4UaafW+yBNqbWrNAnhx4i/K5KL3o9mLxoVwP/AxAgQ7WiPe7 oJEwdUO7TzXYLG1fIUc8i7OOiKZRqlCZsmoh3XKrLwnWfm2FrOdN9n+8V2gR+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671268467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y6lQfj3dYiaec85vO5bvoraYpdVv59544Va5LpXgxbM=; b=s/sxNpiT+BRK6CQR3ZNE174XDyP6szU5ZNLs70N5LUBXDUlPGGgOnqe0ly1+UgL49ZBbwX 0lWbK9YaY2mrTArZ3X7tA3lk3QUXlegzh2FIAWFnc80STDpiAyNRmQjmuMltTERSskeP6e /KZgGA3v5Nlq7s2zoJ0UIYlqxe45gM2JkdqkTNlXbcIoC9anm1G3Fi7gdFFph342wEIY4E LVlSj/LB04p2G4CI8x99Wqnecke0YE9U1jrqlptzdzTJIOtqa+eYixNNrU8RclP3Ihrxci qCkdx8t89IBf8nb6+TZxMGsyn0ChnCQUo5qEbv9e8EZuatYWtqWqdal0MB8J6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671268467; a=rsa-sha256; cv=none; b=HRgNs0rKjqLg3di+chur+/toHc3yZKYzaJoGg3Es/ceFNM2cGPFoOMBkxR7n7NB0n94qe8 AYfJ5UvlsC47g29Qa/eJv94iGMnYukAaHfH5DQGdtMVagnpcIOjaylJnFjNwOUislfpjtZ 9Gw3XaczgpyKamnVCGkwQtgHI3Kueb1sSkErBR44r8k3qDfduz2IdZDJKUHzQWBWDizRsG GLomCqS9O/WCYXfIKGIEJMNTRza8w8OJf2isZJWGGAeD/PlawmSgwAflFmGcgTcR6FXj+u BwsViYGqETayrOmAeEaGIq0z44Hq1DsdUmuoo36f2qxoMddJZqhg3V3Ucc92ug== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZ0fC12FWzmhk; Sat, 17 Dec 2022 09:14:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BH9ERI1012628; Sat, 17 Dec 2022 09:14:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BH9ERFk012627; Sat, 17 Dec 2022 09:14:27 GMT (envelope-from git) Date: Sat, 17 Dec 2022 09:14:27 GMT Message-Id: <202212170914.2BH9ERFk012627@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 8ea48ecd7a43 - main - www/py-asgi-csrf: New port: ASGI middleware for protecting against CSRF attacks List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8ea48ecd7a434d3659e77a076044306c53b78146 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8ea48ecd7a434d3659e77a076044306c53b78146 commit 8ea48ecd7a434d3659e77a076044306c53b78146 Author: Yuri Victorovich AuthorDate: 2022-12-17 06:32:21 +0000 Commit: Yuri Victorovich 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 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.