summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Roman <davidroman96@gmail.com>2018-06-19 21:56:18 +0200
committerPatrice Clement <monsieurp@gentoo.org>2018-06-21 00:02:04 +0200
commit8ab0b9df79dfae87b9e33e22de761b6660b6b0aa (patch)
tree15853043024c421f426b6b9e40eaf84b669824dc /dev-python/flask-api
parentsys-libs/glibc: ChangeLog.old didnt exist here yet (diff)
downloadgentoo-8ab0b9df79dfae87b9e33e22de761b6660b6b0aa.tar.gz
gentoo-8ab0b9df79dfae87b9e33e22de761b6660b6b0aa.tar.bz2
gentoo-8ab0b9df79dfae87b9e33e22de761b6660b6b0aa.zip
dev-python/flask-api: new package.
Closes: https://github.com/gentoo/gentoo/pull/8916
Diffstat (limited to 'dev-python/flask-api')
-rw-r--r--dev-python/flask-api/Manifest1
-rw-r--r--dev-python/flask-api/flask-api-1.0.ebuild35
-rw-r--r--dev-python/flask-api/metadata.xml19
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
new file mode 100644
index 000000000000..4e074089118b
--- /dev/null
+++ b/dev-python/flask-api/Manifest
@@ -0,0 +1 @@
+DIST flask-api-1.0.tar.gz 180000 BLAKE2B 113bc6a3ba9f548e61ab6c1822491d91f8562c7809929bcd2b0ecc4160a2358532d5da398b7c876cf5e4f3d9dd03bc159da6a1f24621af1e07bc9d9680b87d7f SHA512 425669e54b9f5dbf548acdb9fc2c3c661b8cfc4631d7677f20a838729584c4f970f9fbd47621e5b3155124637f5b8f4b5cb51bc402f7f406108882d46e4908de
diff --git a/dev-python/flask-api/flask-api-1.0.ebuild b/dev-python/flask-api/flask-api-1.0.ebuild
new file mode 100644
index 000000000000..a7ae0d383d16
--- /dev/null
+++ b/dev-python/flask-api/flask-api-1.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Browsable web APIs for Flask"
+HOMEPAGE="https://github.com/flask-api/flask-api"
+# pypi mirror don't have docs folder
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/flask[${PYTHON_USEDEP}]"
+
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+python_install_all() {
+ distutils-r1_python_install_all
+ dodoc docs/about/* docs/api-guide/* docs/index.md
+}
+
+python_test() {
+ pytest || die
+}
diff --git a/dev-python/flask-api/metadata.xml b/dev-python/flask-api/metadata.xml
new file mode 100644
index 000000000000..9e4d1fa2d5b5
--- /dev/null
+++ b/dev-python/flask-api/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>davidroman96@gmail.com</email>
+ <name>David Roman</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">flask-api/flask-api</remote-id>
+ </upstream>
+</pkgmetadata>