1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2025-12-19 04:20:26 +01:00

Added ptpython

This commit is contained in:
2023-02-26 14:34:35 +01:00
parent 7cb9e0d99c
commit e0a3480db6
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST ptpython-3.0.23.tar.gz 68146 BLAKE2B 7bdfac0ea989f87bcae62d879f277e8d9d661ba85c397691425ac9c9c8ffe9d48e2cccbe9306f2567025d7e4d62a7478cf09f18ebed5e3b2c5a0918c27a2c540 SHA512 e3f7db8060a2b2e5ec9f9cdf7a6aacede447a42ea3d13f08e2cba604dc96ccf6504cd31b45327b144882bb12f0cc272406d501a8de98adc9598ec79dbcaf843e
EBUILD ptpython-3.0.23.ebuild 857 BLAKE2B 1749613920b3d635ebaae7e20c3bafd41db3e1c89cd9394a70e5d0bee1276ff1aa513d43f58d4820c0134ae89f636b6fc5c160815e033ca6c226814ece8f4582 SHA512 79ac5af723c2c677d343933524b30ca80c459a76d308bb58b16165e88ff5c977117eb1fcdc9ea9458b67f336ae5f4f0b6a5faf818b18f25c6712482f8a8eb264

View File

@@ -0,0 +1,36 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="Python REPL build on top of prompt_toolkit"
HOMEPAGE="https://github.com/prompt-toolkit/ptpython"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="-black -ipython"
RDEPEND="
black? (
dev-python/black[${PYTHON_USEDEP}]
)
dev-python/appdirs[${PYTHON_USEDEP}]
ipython? (
dev-python/ipython[${PYTHON_USEDEP}]
)
>=dev-python/jedi-0.16.0[${PYTHON_USEDEP}]
>=dev-python/prompt_toolkit-3.0.18[${PYTHON_USEDEP}]
<dev-python/prompt_toolkit-3.1.0[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
"
python_install() {
distutils-r1_python_install
if ! use ipython; then
rm "${D}"/usr/bin/ptipython* || die
fi
}