commit: 1e87399b60d2c7a5397bdfeff47f76a0c0af6d2a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 10 04:55:39 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 10 05:08:48 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e87399b
dev-python/textx: Bump to 4.2.3
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/textx/Manifest | 1 +
dev-python/textx/textx-4.2.3.ebuild | 60 +++++++++++++++++++++++++++++++++++++
2 files changed, 61 insertions(+)
diff --git a/dev-python/textx/Manifest b/dev-python/textx/Manifest
index eb1867b40ccb..47f3204a4cff 100644
--- a/dev-python/textx/Manifest
+++ b/dev-python/textx/Manifest
@@ -1 +1,2 @@
DIST textX-4.2.2.gh.tar.gz 2136825 BLAKE2B
6d48f7255ca6d87ff018814757be7787f59f0b7a2a587493407da92840c052b770a2a607acac42ddfdc85470f9dfba47abe9abc06c47075f9a399f99c69420bf
SHA512
20b4f6abfbe51e52d53bba243b3a4272df93feb6885c9c2f7bfc614534510d211053ea06b2672ef2e720630485ca304fe2e1c21e47bc0ccaaf97eb012fb8ffcd
+DIST textX-4.2.3.gh.tar.gz 2137561 BLAKE2B
952a86a32ce3ca4ac8b17ee6995545bdb2a36236bf19050ebd4a49af1ca8fca149e7c56537135a9261a096f5c86eaff4fd7db0a500de2ada0a0bb933961c8457
SHA512
e66421bc197a706ca8e3e48ab933904671ce12b32d7802cc3e4fa2005482927d3131162c72b4a4bb42c5af124289bfd7bf27e8ba42cd14901233978fbfd5c1d9
diff --git a/dev-python/textx/textx-4.2.3.ebuild
b/dev-python/textx/textx-4.2.3.ebuild
new file mode 100644
index 000000000000..b0c424833730
--- /dev/null
+++ b/dev-python/textx/textx-4.2.3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit distutils-r1
+
+MY_P=textX-${PV}
+DESCRIPTION="Meta-language for DSL implementation inspired by Xtext"
+HOMEPAGE="
+ https://pypi.org/project/textX/
+ https://github.com/textX/textX/
+"
+SRC_URI="
+ https://github.com/textX/textX/archive/${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+ >=dev-python/arpeggio-2.0.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/html5lib[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+python_test() {
+ cp -a "${BUILD_DIR}"/{install,test} || die
+ local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH}
+
+ # Update the shebang
+ sed -e "s:install/usr/bin/${EPYTHON}:test/usr/bin/${EPYTHON}:" \
+ -i "${BUILD_DIR}"/test/usr/bin/textx || die
+
+ # Install necessary plugins
+ local plugins=(
+ tests/functional/subcommands/example_project
+ tests/functional/registration/projects/*
+ )
+ local p
+ for p in "${plugins[@]}"; do
+ pushd "${p}" >/dev/null || die
+ distutils_pep517_install "${BUILD_DIR}"/test
+ popd >/dev/null || die
+ done
+
+ epytest tests/functional
+}