[NEW PORT] devel/py-apispec: Pluggable API specification generator
A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification). Features: - Supports the OpenAPI Specification (versions 2 and 3) - Framework-agnostic - Utilities for parsing docstrings WWW: https://github.com/marshmallow-code/apispec PR: 242609 Submitted by: Goran Mekić <meka tilda.center>
This commit is contained in:
parent
1bae2bb97a
commit
79df27085c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=520082
4 changed files with 48 additions and 0 deletions
|
@ -4127,6 +4127,7 @@
|
|||
SUBDIR += py-anyjson
|
||||
SUBDIR += py-apache_conf_parser
|
||||
SUBDIR += py-apipkg
|
||||
SUBDIR += py-apispec
|
||||
SUBDIR += py-apns2
|
||||
SUBDIR += py-appdirs
|
||||
SUBDIR += py-application
|
||||
|
|
34
devel/py-apispec/Makefile
Normal file
34
devel/py-apispec/Makefile
Normal file
|
@ -0,0 +1,34 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= apispec
|
||||
PORTVERSION= 3.1.0
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= meka@tilda.center
|
||||
COMMENT= Pluggable API specification generator
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=3.10:devel/py-yaml@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}marshmallow>0:devel/py-marshmallow@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
|
||||
|
||||
# tests_require = prance[osv]>=0.11
|
||||
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}prance>=0.11:devel/py-prance@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}openapi-spec-validator>0:devel/py-openapi-spec-validator@${PY_FLAVOR}
|
||||
|
||||
USES= python:3.5+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
TEST_ENV= PYTHONPATH=${WRKSRC}/src
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/py-apispec/distinfo
Normal file
3
devel/py-apispec/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1576169493
|
||||
SHA256 (apispec-3.1.0.tar.gz) = fe5cf5fc89b1c4a73acd5af3a10ede02b31ec116f215ed02271cb905d3172367
|
||||
SIZE (apispec-3.1.0.tar.gz) = 62775
|
10
devel/py-apispec/pkg-descr
Normal file
10
devel/py-apispec/pkg-descr
Normal file
|
@ -0,0 +1,10 @@
|
|||
A pluggable API specification generator. Currently supports the OpenAPI
|
||||
Specification (f.k.a. the Swagger specification).
|
||||
|
||||
Features:
|
||||
|
||||
- Supports the OpenAPI Specification (versions 2 and 3)
|
||||
- Framework-agnostic
|
||||
- Utilities for parsing docstrings
|
||||
|
||||
WWW: https://github.com/marshmallow-code/apispec
|
Loading…
Reference in a new issue