summaryrefslogtreecommitdiff
path: root/dev-python/apispec
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/apispec
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'dev-python/apispec')
-rw-r--r--dev-python/apispec/Manifest2
-rw-r--r--dev-python/apispec/apispec-0.35.0.ebuild37
-rw-r--r--dev-python/apispec/apispec-3.3.0.ebuild33
-rw-r--r--dev-python/apispec/files/apispec-3.3.0-tests.patch20
-rw-r--r--dev-python/apispec/metadata.xml12
5 files changed, 104 insertions, 0 deletions
diff --git a/dev-python/apispec/Manifest b/dev-python/apispec/Manifest
new file mode 100644
index 000000000000..acb1181b3790
--- /dev/null
+++ b/dev-python/apispec/Manifest
@@ -0,0 +1,2 @@
+DIST apispec-0.35.0.tar.gz 47684 BLAKE2B 3067a0d50a6f53378f46a9a07596da53679f399732619f5bd3d1bedd85d088c6901560dc46be22b42d77537c437d9d97840a55f0b1513e39c87760e9e6c8ea0c SHA512 45a3034c49169ca7998480a8b8e0ac6415d49b6235885fba31eaaccb1c008b4ea845a6743f10cc3492215affe20b690d73a9a06e0e0c3942e0327f381415fa57
+DIST apispec-3.3.0.tar.gz 61687 BLAKE2B f1bcd212494d9196441e44acd4fd0d06063d7f80859ce49cd50dd5a4cbc4ddace974c2388031ddc8ef015b44f10a8f5d97c6d0f4fed96c1336dfc7282fa7c173 SHA512 c94cc48702ced17baa01175be2ff261dd7203cb0f49477f4be633080ef5f8029e5654579609370b4c1cd852d71f0b6fc116a05ee34515b22e7a0877a19d49a27
diff --git a/dev-python/apispec/apispec-0.35.0.ebuild b/dev-python/apispec/apispec-0.35.0.ebuild
new file mode 100644
index 000000000000..29c537f4aca7
--- /dev/null
+++ b/dev-python/apispec/apispec-0.35.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_6 )
+
+inherit distutils-r1
+
+DESCRIPTION="A pluggable API specification generator."
+HOMEPAGE="https://github.com/marshmallow-code/apispec/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/bottle[${PYTHON_USEDEP}]
+ dev-python/marshmallow[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+src_prepare() {
+ rm tests/test_swagger.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ py.test -v || die "tests failed under ${EPYTHON}"
+}
diff --git a/dev-python/apispec/apispec-3.3.0.ebuild b/dev-python/apispec/apispec-3.3.0.ebuild
new file mode 100644
index 000000000000..df2a9b020bce
--- /dev/null
+++ b/dev-python/apispec/apispec-3.3.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="A pluggable API specification generator."
+HOMEPAGE="https://github.com/marshmallow-code/apispec/"
+SRC_URI="https://github.com/marshmallow-code/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
+"
+BDEPEND="${RDEPEND}
+ test? (
+ dev-python/bottle[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/marshmallow[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=(
+ "${FILESDIR}/apispec-3.3.0-tests.patch"
+)
+
+distutils_enable_tests pytest
diff --git a/dev-python/apispec/files/apispec-3.3.0-tests.patch b/dev-python/apispec/files/apispec-3.3.0-tests.patch
new file mode 100644
index 000000000000..fb2ffc549207
--- /dev/null
+++ b/dev-python/apispec/files/apispec-3.3.0-tests.patch
@@ -0,0 +1,20 @@
+diff --git a/tests/test_ext_marshmallow_openapi.py b/tests/test_ext_marshmallow_openapi.py
+index ab1b0b8..d151a32 100644
+--- a/tests/test_ext_marshmallow_openapi.py
++++ b/tests/test_ext_marshmallow_openapi.py
+@@ -454,6 +454,7 @@ class TestNesting:
+ assert "breed" not in category_props
+
+
++@pytest.mark.skip("test requires extra dependencies")
+ def test_openapi_tools_validate_v2():
+ ma_plugin = MarshmallowPlugin()
+ spec = APISpec(
+@@ -512,6 +513,7 @@ def test_openapi_tools_validate_v2():
+ pytest.fail(str(error))
+
+
++@pytest.mark.skip("test requires extra dependencies")
+ def test_openapi_tools_validate_v3():
+ ma_plugin = MarshmallowPlugin()
+ spec = APISpec(
diff --git a/dev-python/apispec/metadata.xml b/dev-python/apispec/metadata.xml
new file mode 100644
index 000000000000..d26fc5ad8e42
--- /dev/null
+++ b/dev-python/apispec/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">apispec</remote-id>
+ <remote-id type="github">marshmallow-code/apispec</remote-id>
+ </upstream>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>