1 |
commit: 09bcc049078f00f1628ef2899ed87bb6dc618f2c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 11 17:40:35 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 17:54:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09bcc049 |
7 |
|
8 |
dev-python/html5lib: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/html5lib/html5lib-1.1-r1.ebuild | 39 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 39 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/html5lib/html5lib-1.1-r1.ebuild b/dev-python/html5lib/html5lib-1.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..ffec69d22b5f |
18 |
--- /dev/null |
19 |
+++ b/dev-python/html5lib/html5lib-1.1-r1.ebuild |
20 |
@@ -0,0 +1,39 @@ |
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 |
+PYTHON_REQ_USE="xml(+)" |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="HTML parser based on the HTML5 specification" |
33 |
+HOMEPAGE=" |
34 |
+ https://github.com/html5lib/html5lib-python/ |
35 |
+ https://html5lib.readthedocs.io/ |
36 |
+ https://pypi.org/project/html5lib/ |
37 |
+" |
38 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="MIT" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
43 |
+ |
44 |
+PATCHES=( |
45 |
+ "${FILESDIR}"/${P}-pytest6.patch |
46 |
+) |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-python/six-1.9[${PYTHON_USEDEP}] |
50 |
+ dev-python/webencodings[${PYTHON_USEDEP}] |
51 |
+" |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ dev-python/pytest-expect[${PYTHON_USEDEP}] |
55 |
+ dev-python/mock[${PYTHON_USEDEP}] |
56 |
+ ) |
57 |
+" |
58 |
+ |
59 |
+distutils_enable_tests pytest |