summaryrefslogtreecommitdiff
path: root/www/py-essentials-openapi
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-essentials-openapi')
-rw-r--r--www/py-essentials-openapi/Makefile30
-rw-r--r--www/py-essentials-openapi/distinfo3
-rw-r--r--www/py-essentials-openapi/pkg-descr15
3 files changed, 48 insertions, 0 deletions
diff --git a/www/py-essentials-openapi/Makefile b/www/py-essentials-openapi/Makefile
new file mode 100644
index 000000000000..84f8be208d3c
--- /dev/null
+++ b/www/py-essentials-openapi/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= essentials-openapi
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.2.1
+CATEGORIES= www python
+#MASTER_SITES= PYPI # no tests
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Classes to generate OpenAPI Documentation v3 and v2
+WWW= https://github.com/Neoteroi/essentials-openapi
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}essentials>=1.1.5:devel/py-essentials@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}markupsafe>=3.0.0:textproc/py-markupsafe@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyyaml>=6:devel/py-pyyaml@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+USE_GITHUB= yes
+GH_ACCOUNT= Neoteroi
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+# tests as of 1.2.1: 157 passed in 8.00s
+
+.include <bsd.port.mk>
diff --git a/www/py-essentials-openapi/distinfo b/www/py-essentials-openapi/distinfo
new file mode 100644
index 000000000000..97de9b762b47
--- /dev/null
+++ b/www/py-essentials-openapi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759700656
+SHA256 (Neoteroi-essentials-openapi-v1.2.1_GH0.tar.gz) = 88d587003a52a154bb7d512f24a7bb2af25776e6bad7767d1a8868c672595db0
+SIZE (Neoteroi-essentials-openapi-v1.2.1_GH0.tar.gz) = 86098
diff --git a/www/py-essentials-openapi/pkg-descr b/www/py-essentials-openapi/pkg-descr
new file mode 100644
index 000000000000..be99c659b850
--- /dev/null
+++ b/www/py-essentials-openapi/pkg-descr
@@ -0,0 +1,15 @@
+Essentials OpenAPI provides classes and utilities to generate OpenAPI
+Documentation in both version 3 and version 2 formats. It supports
+output in JSON and YAML formats for API documentation.
+
+Key features:
+* Generate OpenAPI 3.x and 2.x documentation
+* Support for JSON and YAML output formats
+* Automatic schema generation from Python types
+* Integration with web frameworks
+* Extensible documentation system
+* Template-based documentation generation
+* Command-line interface for documentation generation
+
+This library is particularly useful for web APIs that need to generate
+comprehensive API documentation automatically from code annotations.