aboutsummaryrefslogtreecommitdiff
path: root/www/py-dj40-drf-yasg/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-dj40-drf-yasg/Makefile')
-rw-r--r--www/py-dj40-drf-yasg/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/www/py-dj40-drf-yasg/Makefile b/www/py-dj40-drf-yasg/Makefile
new file mode 100644
index 000000000000..88dfb6e52d37
--- /dev/null
+++ b/www/py-dj40-drf-yasg/Makefile
@@ -0,0 +1,37 @@
+PORTNAME= drf-yasg
+DISTVERSION= 1.20.0
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj40-
+
+MAINTAINER= kai@FreeBSD.org
+COMMENT= Yet Another Swagger Generator
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.rst
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.0.6:devel/py-setuptools_scm@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django40>=2.2.16:www/py-django40@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dj40-djangorestframework>=3.10.3:www/py-dj40-djangorestframework@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}coreapi>=2.3.3:devel/py-coreapi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}coreschema>=0.0.4:devel/py-coreschema@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}inflection>=0.3.1:devel/py-inflection@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.15.34:devel/py-ruamel.yaml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}uritemplate>=3.0.0:net/py-uritemplate@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= distutils autoplist
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+NO_ARCH= yes
+
+OPTIONS_DEFINE= VALIDATION
+OPTIONS_DEFAULT= VALIDATION
+
+VALIDATION_DESC= Enable built-in OpenAPI validation mechanisms
+VALIDATION_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}swagger-spec-validator>=2.1.0:devel/py-swagger-spec-validator@${PY_FLAVOR}
+
+.include <bsd.port.mk>