mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
Add dev-python/thonny, a popular IDE. Noting some elements of this ebuild were taken from https://github.com/gentoo/gentoo/pull/29208.
Signed-off-by: Abishek Jakkala <thysupremematrix@tuta.io>
This commit is contained in:
1
dev-python/thonny/Manifest
Normal file
1
dev-python/thonny/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST thonny-4.1.7.tar.gz 4085064 BLAKE2B fd91d4c3f45dd545d9c7c6d1edda636d0c784bb8dc491f2f8185f9bf1198c3ef81f43a56e4c7cc59b6fed9c337891b36b55523ab44cd39abe448eced2ced375d SHA512 8f263c0eb3430947bbd601090befad1181ae6990ea23f2962e3837aaf9dbf083f3f89eaae717e2db526d969311a28f170b76b7ccad2c8c269c253065eb8cfbb8
|
||||||
21
dev-python/thonny/metadata.xml
Normal file
21
dev-python/thonny/metadata.xml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>thysupremematrix@tuta.io</email>
|
||||||
|
<name>Abishek Jakkala</name>
|
||||||
|
</maintainer>
|
||||||
|
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">thonny/thonny</remote-id>
|
||||||
|
<bugs-to>https://github.com/thonny/thonny/issues</bugs-to>
|
||||||
|
<changelog>https://github.com/thonny/thonny/releases</changelog>
|
||||||
|
</upstream>
|
||||||
|
|
||||||
|
<longdescription>
|
||||||
|
Thonny is a Python IDE designed for beginners. It comes with a simple
|
||||||
|
debugger, expression evaluation, step-by-step execution, and easy
|
||||||
|
access to Python interpreters, including support for MicroPython
|
||||||
|
and CircuitPython.
|
||||||
|
</longdescription>
|
||||||
|
</pkgmetadata>
|
||||||
68
dev-python/thonny/thonny-4.1.7.ebuild
Normal file
68
dev-python/thonny/thonny-4.1.7.ebuild
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
# Copyright 1999-2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..14} )
|
||||||
|
PYTHON_REQ_USE="tk"
|
||||||
|
|
||||||
|
inherit desktop distutils-r1 xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="Thonny is a Python IDE meant for learning programming."
|
||||||
|
HOMEPAGE="
|
||||||
|
https://thonny.org/ https://github.com/thonny/thonny"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/thonny/thonny/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
>=dev-python/jedi-0.18.1[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pylint[${PYTHON_USEDEP}]
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/mypy[${PYTHON_USEDEP}]
|
||||||
|
dev-python/asttokens[${PYTHON_USEDEP}]
|
||||||
|
dev-python/send2trash[${PYTHON_USEDEP}]
|
||||||
|
' 'python*'
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
distutils-r1_src_install
|
||||||
|
newicon packaging/icons/thonny-32x32.png thonny.png
|
||||||
|
domenu ${S}/packaging/linux/org.thonny.Thonny.desktop
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_pkg_postinst
|
||||||
|
elog "Thonny has been installed."
|
||||||
|
elog "To use Thonny with a specific Python version, you can set"
|
||||||
|
elog "the interpreter in Tools -> Options -> Interpreter"
|
||||||
|
elog ""
|
||||||
|
elog "For MicroPython/CircuitPython support, you may need additional"
|
||||||
|
elog "packages like dev-python/esptool or dev-python/adafruit-ampy"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_pkg_postrm
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user