diff options
Diffstat (limited to 'security/py-guardpost')
-rw-r--r-- | security/py-guardpost/Makefile | 31 | ||||
-rw-r--r-- | security/py-guardpost/distinfo | 3 | ||||
-rw-r--r-- | security/py-guardpost/pkg-descr | 14 |
3 files changed, 48 insertions, 0 deletions
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. |