dev-python/pyparsing: Sync with Gentoo

It's from Gentoo commit 31e5492b4db7034078ef53ab43e1a82e3730e0c9.
This commit is contained in:
Flatcar Buildbot 2023-06-19 07:13:27 +00:00
parent b301dbe44a
commit a3d1e8b9cb
2 changed files with 48 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST pyparsing-3.1.0.tar.gz 882565 BLAKE2B 8ed2e15e2422ded9a558b866a5cbbdc0fb6c7ce42962710e42cfd751aae7b48bacd3d6201084189a940d262fb7b142ea37b897bae23f97a175f6152c19adb5c9 SHA512 0ad2e8fff93708426b3675e2d41da12b3f09531bf272799db4095ee618bbaa0f4b90e527ff09dda2acbdb923d59117678fbb28b82a7cfd2b395d686f47b61850
DIST pyparsing_3.0.9.gh.tar.gz 967771 BLAKE2B c13c74661b9e0d53b4886c9949b01951d220991f916362a13ce0c32c0ab05a6b1cab4d5e5a626acb7563c0ec1716348ede205cb67bf22c0710904f07404ad82a SHA512 1158f27e31f8eced540217b7234b09005eac416fad74faf59678fdae93fe2f76e0e3b5f4adfd3ceb42c8aef19150950293e989c9a5189741175073eb7a03cd6d

View File

@ -0,0 +1,47 @@
# Copyright 2004-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{10..12} pypy3 )
inherit distutils-r1 pypi
DESCRIPTION="Easy-to-use Python module for text parsing"
HOMEPAGE="
https://github.com/pyparsing/pyparsing/
https://pypi.org/project/pyparsing/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="examples"
distutils_enable_tests pytest
EPYTEST_IGNORE=(
# railroad-diagrams not packaged (and not suitable for packaging yet)
tests/test_diagram.py
)
EPYTEST_DESELECT=(
# also railroad-diagrams
tests/test_examples.py::TestExamples::test_range_check
tests/test_unit.py::Test02_WithoutPackrat::testEmptyExpressionsAreHandledProperly
tests/test_unit.py::Test04_WithPackrat::testEmptyExpressionsAreHandledProperly
tests/test_unit.py::Test06_WithBoundedPackrat::testEmptyExpressionsAreHandledProperly
tests/test_unit.py::Test08_WithUnboundedPackrat::testEmptyExpressionsAreHandledProperly
tests/test_unit.py::Test09_WithLeftRecursionParsing::testEmptyExpressionsAreHandledProperly
tests/test_unit.py::Test10_WithLeftRecursionParsingBoundedMemo::testEmptyExpressionsAreHandledProperly
)
python_install_all() {
if use examples; then
docompress -x /usr/share/doc/${PF}/examples
dodoc -r examples
fi
distutils-r1_python_install_all
}