Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2025 08:29:43 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e30addd9fc1a - main - security/py-guardpost: New port: Framework to handle authentication and authorization
Message-ID:  <202510060829.5968ThoJ042761@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

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

commit e30addd9fc1a0df89d77f7e83536cbcfe9ca9fd3
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-10-06 07:46:16 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-10-06 08:25:51 +0000

    security/py-guardpost: New port: Framework to handle authentication and authorization
---
 security/Makefile               |  1 +
 security/py-guardpost/Makefile  | 31 +++++++++++++++++++++++++++++++
 security/py-guardpost/distinfo  |  3 +++
 security/py-guardpost/pkg-descr | 14 ++++++++++++++
 4 files changed, 49 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index 2574d50691c8..44333c31f3b1 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -956,6 +956,7 @@
     SUBDIR += py-gpsoauth
     SUBDIR += py-greenbone-feed-sync
     SUBDIR += py-gssapi
+    SUBDIR += py-guardpost
     SUBDIR += py-gvm-tools
     SUBDIR += py-hkdf
     SUBDIR += py-htpasswd
diff --git a/security/py-guardpost/Makefile b/security/py-guardpost/Makefile
new file mode 100644
index 000000000000..311b25c6fd70
--- /dev/null
+++ b/security/py-guardpost/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	guardpost
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.0.3
+CATEGORIES=	security python
+#MASTER_SITES=	PYPI # no tests
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Framework to handle authentication and authorization
+WWW=		https://github.com/Neoteroi/GuardPost
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}rodi>=2.0.0:devel/py-rodi@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyjwt>0:www/py-pyjwt@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Neoteroi
+GH_PROJECT=	GuardPost
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+# tests as of 1.0.3: 101 passed, 1 failed (test_jwt_validator_fetches_tokens_again_for_unknown_kid) in 11.37s
+
+.include <bsd.port.mk>
diff --git a/security/py-guardpost/distinfo b/security/py-guardpost/distinfo
new file mode 100644
index 000000000000..3c6f3c2b4fc4
--- /dev/null
+++ b/security/py-guardpost/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759700648
+SHA256 (Neoteroi-GuardPost-v1.0.3_GH0.tar.gz) = 8d040697f6d540bfb386f6bd8c122090b474ab8a447ed2f402fcd5d73a05e4bf
+SIZE (Neoteroi-GuardPost-v1.0.3_GH0.tar.gz) = 38518
diff --git a/security/py-guardpost/pkg-descr b/security/py-guardpost/pkg-descr
new file mode 100644
index 000000000000..a1800c67e953
--- /dev/null
+++ b/security/py-guardpost/pkg-descr
@@ -0,0 +1,14 @@
+GuardPost is a Python framework designed to handle authentication and
+authorization in web applications. It provides a flexible and extensible
+system for managing user permissions, roles, and access control.
+
+Key features:
+* Authentication and authorization framework
+* Support for role-based access control (RBAC)
+* Extensible permission system
+* Integration with dependency injection
+* JWT token support with optional cryptography
+* Clean API for defining access policies
+
+GuardPost is particularly useful for building secure web APIs and
+applications that require fine-grained access control.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510060829.5968ThoJ042761>