From 7a1b759c7dbe8aa7af33fab844b1cf55e8cef1cc Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 20 Mar 2019 13:18:52 -0500 Subject: dev-python/drf-yasg:generate Swagger / OpenAPI 2.0 schemas Automated generation of Swagger/OpenAPI 2.0 schemas from Django Rest framework code. Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: William Hubbs --- dev-python/drf-yasg/Manifest | 1 + dev-python/drf-yasg/drf-yasg-1.14.0.ebuild | 28 ++++++++++++++++++++++++++++ dev-python/drf-yasg/metadata.xml | 13 +++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 dev-python/drf-yasg/Manifest create mode 100644 dev-python/drf-yasg/drf-yasg-1.14.0.ebuild create mode 100644 dev-python/drf-yasg/metadata.xml (limited to 'dev-python/drf-yasg') diff --git a/dev-python/drf-yasg/Manifest b/dev-python/drf-yasg/Manifest new file mode 100644 index 000000000000..88605dd49621 --- /dev/null +++ b/dev-python/drf-yasg/Manifest @@ -0,0 +1 @@ +DIST drf-yasg-1.14.0.tar.gz 1270930 BLAKE2B 11c075fecf1e0742765ebcab27ffda719867e4d49f5e6f337d2d048dea26e3fd1585f42a2bc58808395ff3ef2e1c5aae912d5ab547f91be5b3f0bc3a0ebae98e SHA512 283307cecfc0c8fe97a8742780184bd73b547f9cd4e28bafd35cb1447519f65a432f112627fc7f5e9560185014d0477a9bf507c1cb9afcbdc3f58a21a7dd351f diff --git a/dev-python/drf-yasg/drf-yasg-1.14.0.ebuild b/dev-python/drf-yasg/drf-yasg-1.14.0.ebuild new file mode 100644 index 000000000000..8a923a2a9c52 --- /dev/null +++ b/dev-python/drf-yasg/drf-yasg-1.14.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 ) +inherit distutils-r1 + +DESCRIPTION="Automated generation of Swagger/OpenAPI 2.0 schemas from Django Rest framework" +HOMEPAGE="https://github.com/axnsan12/drf-yasg" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+validation" + +RDEPEND=">=dev-python/django-1.11.7[${PYTHON_USEDEP}] + >=dev-python/djangorestframework-3.7.7[${PYTHON_USEDEP}] + >=dev-python/six-1.10.0[${PYTHON_USEDEP}] + >=dev-python/coreapi-2.3.3[${PYTHON_USEDEP}] + >=dev-python/coreschema-0.0.4[${PYTHON_USEDEP}] + >=dev-python/ruamel-yaml-0.15.34[${PYTHON_USEDEP}] + >=dev-python/inflection-0.3.1[${PYTHON_USEDEP}] + >=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}] + validation? ( >=dev-python/swagger-spec-validator-2.1.0[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} +dev-python/setuptools[${PYTHON_USEDEP}]" diff --git a/dev-python/drf-yasg/metadata.xml b/dev-python/drf-yasg/metadata.xml new file mode 100644 index 000000000000..d162bd623caf --- /dev/null +++ b/dev-python/drf-yasg/metadata.xml @@ -0,0 +1,13 @@ + + + + + williamh@gentoo.org + William Hubbs + + + + Enable swagger spec validation using swagger-spec-validator + + + -- cgit v1.2.3-65-gdbad