mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
dev-python/pyinquirer: add snapshot ebuild
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
53
dev-python/pyinquirer/pyinquirer-1.0.3_p20200708.ebuild
Normal file
53
dev-python/pyinquirer/pyinquirer-1.0.3_p20200708.ebuild
Normal file
@@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PN0="PyInquirer"
|
||||
P0="${PN0}-${PV}"
|
||||
COMMIT="7485a1fd5442332399d5f05c84e4fd74b63a5823"
|
||||
|
||||
EGIT_REPO_URI="https://github.com/CITGuru/${PN0}"
|
||||
case "${PV}" in
|
||||
9999)
|
||||
inherit git-r3
|
||||
;;
|
||||
*)
|
||||
SRC_URI="${EGIT_REPO_URI}/archive/${COMMIT}.tar.gz -> ${P0}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/${PN0}-${COMMIT}"
|
||||
esac
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
inherit distutils-r1
|
||||
# conf.py gone???
|
||||
#distutils_enable_sphinx docs
|
||||
distutils_enable_tests pytest
|
||||
|
||||
DESCRIPTION="A Python module for common interactive command line UIs"
|
||||
HOMEPAGE="${EGIT_REPO_URI}"
|
||||
LICENSE="MIT"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
# Tests are outdated, they fail for >dev-python/ptyprocess-0.5.1
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=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}
|
||||
test? (
|
||||
dev-python/testfixtures[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-html-1.10.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-xdist-1.15.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ptyprocess-0.5.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/regex-2016.11.21[${PYTHON_USEDEP}] )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e 's/packages=find_packages(exclude=\[/\0"examples", /' setup.py ||
|
||||
die "Failed to patch setup.py"
|
||||
}
|
||||
Reference in New Issue
Block a user