commit: 8ab0b9df79dfae87b9e33e22de761b6660b6b0aa Author: David Roman <davidroman96 <AT> gmail <DOT> com> AuthorDate: Tue Jun 19 19:56:18 2018 +0000 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> CommitDate: Wed Jun 20 22:02:04 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ab0b9df
dev-python/flask-api: new package. Closes: https://github.com/gentoo/gentoo/pull/8916 dev-python/flask-api/Manifest | 1 + dev-python/flask-api/flask-api-1.0.ebuild | 35 +++++++++++++++++++++++++++++++ dev-python/flask-api/metadata.xml | 19 +++++++++++++++++ 3 files changed, 55 insertions(+) diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest new file mode 100644 index 00000000000..4e074089118 --- /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 00000000000..a7ae0d383d1 --- /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 00000000000..9e4d1fa2d5b --- /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>[email protected]</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="person"> + <email>[email protected]</email> + <name>David Roman</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="github">flask-api/flask-api</remote-id> + </upstream> +</pkgmetadata>
