1 |
commit: 6ad66dc8a702af7da08ab8d07656a21679ef749d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 31 17:11:29 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 31 17:11:29 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ad66dc8 |
7 |
|
8 |
dev-python/astunparse: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/astunparse/astunparse-1.6.3-r1.ebuild | 38 ++++++++++++++++++++++++ |
13 |
1 file changed, 38 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/astunparse/astunparse-1.6.3-r1.ebuild b/dev-python/astunparse/astunparse-1.6.3-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..eccebf021ee7 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/astunparse/astunparse-1.6.3-r1.ebuild |
20 |
@@ -0,0 +1,38 @@ |
21 |
+# Copyright 2020-2023 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_{9..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Astun parser for python" |
32 |
+HOMEPAGE=" |
33 |
+ https://github.com/simonpercivall/astunparse/ |
34 |
+ https://pypi.org/project/astunparse/ |
35 |
+" |
36 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="BSD" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ >=dev-python/six-1.6.1[${PYTHON_USEDEP}] |
44 |
+ >=dev-python/wheel-0.23.0[${PYTHON_USEDEP}] |
45 |
+" |
46 |
+ |
47 |
+PATCHES=( |
48 |
+ "${FILESDIR}/astunparse-1.6.2-tests.patch" |
49 |
+ # from Fedora |
50 |
+ "${FILESDIR}/${P}-py39.patch" |
51 |
+) |
52 |
+ |
53 |
+distutils_enable_tests unittest |
54 |
+ |
55 |
+python_install_all() { |
56 |
+ distutils-r1_python_install_all |
57 |
+ dodoc *.rst |
58 |
+} |