diff options
author | 2020-07-20 16:45:13 +0200 | |
---|---|---|
committer | 2020-07-20 16:46:32 +0200 | |
commit | 4bb4e2142de3cc84f037482c8b4f5116173ed0ef (patch) | |
tree | eed968545ef3f3bd0687b0bb6a1dbec05ba66039 /dev-python | |
parent | games-engines/boxtron: New package (diff) | |
download | guru-4bb4e2142de3cc84f037482c8b4f5116173ed0ef.tar.gz guru-4bb4e2142de3cc84f037482c8b4f5116173ed0ef.tar.bz2 guru-4bb4e2142de3cc84f037482c8b4f5116173ed0ef.zip |
dev-python/pyinquirer: New package
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Matthias Coppens <coppens.matthias.abc@gmail.com>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pyinquirer/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/pyinquirer/pyinquirer-9999.ebuild | 40 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/pyinquirer/metadata.xml b/dev-python/pyinquirer/metadata.xml new file mode 100644 index 00000000..e235f5bb --- /dev/null +++ b/dev-python/pyinquirer/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>coppens.matthias.abc@gmail.com</email> + <description>Matthias Coppens</description> + </maintainer> + <longdescription> + PyInquirer strives to be an easily embeddable and beautiful + command line interface for Python. PyInquirer wants to make it + easy for existing Inquirer.js users to write immersive + command line applications in Python. We are convinced that its + feature-set is the most complete for building immersive + CLI applications. We also hope that PyInquirer proves itself + useful to Python users. + </longdescription> +</pkgmetadata> diff --git a/dev-python/pyinquirer/pyinquirer-9999.ebuild b/dev-python/pyinquirer/pyinquirer-9999.ebuild new file mode 100644 index 00000000..c751d79d --- /dev/null +++ b/dev-python/pyinquirer/pyinquirer-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PN0="PyInquirer" +P0="${PN0}-${PV}" + +EGIT_REPO_URI="https://github.com/CITGuru/${PN0}" +case "${PV}" in + 9999) + inherit git-r3 + ;; + *) + SRC_URI="${EGIT_REPO_URI}/archive/${PV}.tar.gz -> ${P0}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${P0}" +esac + +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit distutils-r1 +distutils_enable_sphinx docs + +DESCRIPTION="A Python module for common interactive command line UIs" +HOMEPAGE="${EGIT_REPO_URI}" +LICENSE="MIT" + +SLOT="0" + +RDEPEND="${PYTHON_DEPS} + >=dev-python/prompt_toolkit-3.0.0[${PYTHON_USEDEP}] + <dev-python/prompt_toolkit-3.1.0[${PYTHON_USEDEP}] + >=dev-python/pygments-2.2.0[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +src_prepare() { + default + sed -i -e 's/packages=find_packages(exclude=\[/\0"examples", /' setup.py || + die "Failed to patch setup.py" +} |