summaryrefslogtreecommitdiff
path: root/dev-python/flask-restless
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/flask-restless
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/flask-restless')
-rw-r--r--dev-python/flask-restless/Manifest4
-rw-r--r--dev-python/flask-restless/files/mapping.patch13
-rw-r--r--dev-python/flask-restless/flask-restless-0.17.0.ebuild59
-rw-r--r--dev-python/flask-restless/metadata.xml11
4 files changed, 87 insertions, 0 deletions
diff --git a/dev-python/flask-restless/Manifest b/dev-python/flask-restless/Manifest
new file mode 100644
index 000000000000..d09367b58a6e
--- /dev/null
+++ b/dev-python/flask-restless/Manifest
@@ -0,0 +1,4 @@
+AUX mapping.patch 609 BLAKE2B 5770fb8bf0f68f65ca2bfaa989ad22147dd2d650c96c69273393f286c830ae17ccd6e9a86d4b91593466133219cf3be512473381508dc437029203a4b51efe4b SHA512 eea22ff633fc5cdfc0349c27876dc8eee11a0be5d76a2fc423010ab2622b219745a1bf89f4fb4dcb9199d8bd98f3bc7ea3b12b2603458c4c640b3643a47134bd
+DIST flask-restless-0.17.0.tar.gz 527502 BLAKE2B 6c82d78fd6c6cc1df43e6858668108abcf862a916c3caf814e0c40a8cd9a9e93a057774d3626c54e47a965d35f8b03408bbe231af01cc7dcf561e0ca02dc4ff3 SHA512 96183a8bb285a916e6ad680089c70b4c00fcc72ea26a6862537314f6b588b597ff78f2f1c3de0ae24f7dfc7af53a3412c8179801afa9eaeaeb3505695d44076e
+EBUILD flask-restless-0.17.0.ebuild 1864 BLAKE2B 579e75b6b75f607cb250d0efc1b4d5703fc769a5cacc24c4222d3f97946b0b95008a01359fd65b242ea5280f2c53a07d39452be4920c29e92a77fe8b68f9b3ef SHA512 e9ed6424e3ffc7dec185e8b25ab8eda056605738e6ea02dfa615b20eecf0a3b59fc86b39df5556b0933c139ad875df00f4c2c9423533a4dd5990ad62b563d28f
+MISC metadata.xml 338 BLAKE2B 622f65b047d01b5617f96543692bba1d4566ed25db269d1d0f26b06637138f968f04cc8d44c1b608b1cd7c60782e4150966e79240d71fa75b7a367b19bf118e5 SHA512 cc6bd6a5626d3c650d3937ed2c0a6bc04fe62929d8177b75684eae56e36a63ae89d4e26d37f27d2db40b0673be7c674b92427f25c308f5b866d6eeea80921964
diff --git a/dev-python/flask-restless/files/mapping.patch b/dev-python/flask-restless/files/mapping.patch
new file mode 100644
index 000000000000..725a20d828f6
--- /dev/null
+++ b/dev-python/flask-restless/files/mapping.patch
@@ -0,0 +1,13 @@
+A number of these settings are simply unworkable in gentoo
+diff -ur flask-restless-0.11.0.orig/docs/conf.py flask-restless-0.11.0/docs/conf.py
+--- docs/conf.py 2013-05-19 01:50:21.000000000 +0800
++++ docs/conf.py 2013-06-10 23:39:05.741199580 +0800
+@@ -26,7 +26,7 @@
+
+ # Add any Sphinx extension module names here, as strings. They can be extensions
+ # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
++extensions = ['sphinx.ext.autodoc']
+ extensions += ['sphinxcontrib.httpdomain']
+ extensions += ['sphinxcontrib.issuetracker']
+
diff --git a/dev-python/flask-restless/flask-restless-0.17.0.ebuild b/dev-python/flask-restless/flask-restless-0.17.0.ebuild
new file mode 100644
index 000000000000..b80b28d63d96
--- /dev/null
+++ b/dev-python/flask-restless/flask-restless-0.17.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+
+PYTHON_REQ_USE="sqlite"
+inherit distutils-r1
+
+DESCRIPTION="Flask extension for easy ReSTful API generation"
+HOMEPAGE="https://flask-restless.readthedocs.io/ https://github.com/jfinkels/flask-restless"
+SRC_URI="https://github.com/jfinkels/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( AGPL-3 BSD )"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE="doc examples test"
+
+RDEPEND=">=dev-python/flask-0.7[${PYTHON_USEDEP}]
+ dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
+ dev-python/sqlalchemy[${PYTHON_USEDEP}]
+ dev-python/python-dateutil:0[${PYTHON_USEDEP}]
+ dev-python/mimerender[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
+ >=dev-python/sphinxcontrib-httpdomain-1.1.7[${PYTHON_USEDEP}]
+ >=dev-python/sphinxcontrib-issuetracker-0.11[${PYTHON_USEDEP}]
+ dev-python/flask-themes[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}"/mapping.patch )
+
+python_compile_all() {
+ if use doc; then
+ if ! "${PYTHON}" -c "import flask_restless"; then
+ eerror "flask-restless is not installed. Building of the docs"
+ eerror "requires flask-restless to be installed."
+ eerror "emerge with USE=-doc followed bu USE=doc"
+ die
+ fi
+ # Changes connect to read issues @ github
+ rm -f docs/changelog.rst
+ einfo "Generating html docs for ${PN}"
+ PYTHONPATH=${PYTHONPATH}"${S}"/docs emake -C docs html \
+ || die "Generating html docs for ${PN} failed"
+ fi
+}
+
+python_test() {
+ nosetests -w tests || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ use examples && local EXAMPLES=( examples/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/flask-restless/metadata.xml b/dev-python/flask-restless/metadata.xml
new file mode 100644
index 000000000000..3cc6a720c0ba
--- /dev/null
+++ b/dev-python/flask-restless/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jfinkels/flask-restless</remote-id>
+ </upstream>
+</pkgmetadata>