1 |
commit: 354b7a808db12fde378591f536aacc9fcee3e1c5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 18 22:39:30 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 18 22:44:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=354b7a80 |
7 |
|
8 |
dev-python/lark-parser: Switch to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../lark-parser/lark-parser-0.11.3-r1.ebuild | 28 ++++++++++++++++++++++ |
13 |
1 file changed, 28 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/lark-parser/lark-parser-0.11.3-r1.ebuild b/dev-python/lark-parser/lark-parser-0.11.3-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..d4982e33bc45 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/lark-parser/lark-parser-0.11.3-r1.ebuild |
20 |
@@ -0,0 +1,28 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="Python module to propose a modern general-purpose parsing library for Python" |
31 |
+HOMEPAGE="https://github.com/lark-parser/lark" |
32 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="MIT" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
37 |
+IUSE="test" |
38 |
+RESTRICT="!test? ( test )" |
39 |
+ |
40 |
+BDEPEND=" |
41 |
+ test? ( |
42 |
+ dev-python/atomicwrites[${PYTHON_USEDEP}] |
43 |
+ dev-python/regex[${PYTHON_USEDEP}] |
44 |
+ )" |
45 |
+ |
46 |
+python_test() { |
47 |
+ "${EPYTHON}" -m tests -v || die "Tests fail with ${EPYTHON}" |
48 |
+} |