Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/urwid/
Date: Mon, 16 May 2022 18:41:40
Message-Id: 1652726485.078808835c54f9118e9410f1249eaf7b1c6e59bf.arthurzam@gentoo
1 commit: 078808835c54f9118e9410f1249eaf7b1c6e59bf
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 16 18:33:40 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 16 18:41:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07880883
7
8 dev-python/urwid: PEP517
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/urwid/urwid-2.1.2-r1.ebuild | 44 ++++++++++++++++++++++++++++++++++
13 1 file changed, 44 insertions(+)
14
15 diff --git a/dev-python/urwid/urwid-2.1.2-r1.ebuild b/dev-python/urwid/urwid-2.1.2-r1.ebuild
16 new file mode 100644
17 index 000000000000..130be6fc659b
18 --- /dev/null
19 +++ b/dev-python/urwid/urwid-2.1.2-r1.ebuild
20 @@ -0,0 +1,44 @@
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} )
28 +PYTHON_REQ_USE="ncurses"
29 +inherit distutils-r1 optfeature
30 +
31 +DESCRIPTION="Curses-based user interface library for Python"
32 +HOMEPAGE="http://urwid.org/ https://pypi.org/project/urwid/ https://github.com/urwid/urwid/"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="LGPL-2.1"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
38 +IUSE="examples"
39 +
40 +distutils_enable_sphinx docs
41 +distutils_enable_tests setup.py
42 +
43 +src_prepare() {
44 + # optional tests broken by modern tornado versions
45 + sed -e 's:import tornado:&_broken:' \
46 + -i urwid/tests/test_event_loops.py || die
47 +
48 + # Fix doc generation
49 + sed -e 's/!defindex/layout/' -i docs/tools/templates/indexcontent.html || die
50 +
51 + # Fix for >=dev-python/trio-0.15
52 + sed -e 's/hazmat/lowlevel/' -i urwid/_async_kw_event_loop.py || die
53 +
54 + distutils-r1_src_prepare
55 +}
56 +
57 +python_install_all() {
58 + use examples && dodoc -r examples
59 + distutils-r1_python_install_all
60 +}
61 +
62 +pkg_postinst() {
63 + optfeature "Trio event loop" "dev-python/trio"
64 +}