From c73788ff8948c37819f3c38fd16f15cb4ed36cd2 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 27 Mar 2018 21:20:29 +0000 Subject: [PATCH] New port: www/py-django-rest-swagger: Swagger UI for Django REST framework PR: 226950 Submitted by: Kai --- www/Makefile | 1 + www/py-django-rest-swagger/Makefile | 24 ++++++++++++++++++++++++ www/py-django-rest-swagger/distinfo | 3 +++ www/py-django-rest-swagger/pkg-descr | 3 +++ 4 files changed, 31 insertions(+) create mode 100644 www/py-django-rest-swagger/Makefile create mode 100644 www/py-django-rest-swagger/distinfo create mode 100644 www/py-django-rest-swagger/pkg-descr diff --git a/www/Makefile b/www/Makefile index 42560ce8c89d..bc6be9b80157 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1610,6 +1610,7 @@ SUBDIR += py-django-registration SUBDIR += py-django-registration-defaults SUBDIR += py-django-registration-redux + SUBDIR += py-django-rest-swagger SUBDIR += py-django-reversion SUBDIR += py-django-sekizai SUBDIR += py-django-signals-ahoy diff --git a/www/py-django-rest-swagger/Makefile b/www/py-django-rest-swagger/Makefile new file mode 100644 index 000000000000..354f0be1b56a --- /dev/null +++ b/www/py-django-rest-swagger/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PORTNAME= django-rest-swagger +DISTVERSION= 2.1.2 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= freebsd_ports@k-worx.org +COMMENT= Swagger UI for Django REST framework + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coreapi>0:devel/py-coreapi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}djangorestframework>0:www/py-djangorestframework@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}openapi-codec>0:devel/py-openapi-codec@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}simplejson>0:devel/py-simplejson@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist +NO_ARCH= yes + +.include diff --git a/www/py-django-rest-swagger/distinfo b/www/py-django-rest-swagger/distinfo new file mode 100644 index 000000000000..cca0405e4285 --- /dev/null +++ b/www/py-django-rest-swagger/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1522066333 +SHA256 (django-rest-swagger-2.1.2.tar.gz) = ff889e2b339a9a57010dba7729d56471e05b77827f6dd36c0bcb983839882598 +SIZE (django-rest-swagger-2.1.2.tar.gz) = 727521 diff --git a/www/py-django-rest-swagger/pkg-descr b/www/py-django-rest-swagger/pkg-descr new file mode 100644 index 000000000000..3d7c19ce18ef --- /dev/null +++ b/www/py-django-rest-swagger/pkg-descr @@ -0,0 +1,3 @@ +API documentation generator for Swagger UI and Django REST framework. + +WWW: https://github.com/marcgibbons/django-rest-swagger