summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-10-30 18:36:16 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2021-10-30 18:37:27 +0300
commit06c52e590713065b351419cd5bb7a9c451a8054c (patch)
tree083b64a76178ce31d9c045f7306dadc4f723453d /dev-python/urwid
parentdev-python/urwid: add 2.1.2 (diff)
downloadgentoo-06c52e590713065b351419cd5bb7a9c451a8054c.tar.gz
gentoo-06c52e590713065b351419cd5bb7a9c451a8054c.tar.bz2
gentoo-06c52e590713065b351419cd5bb7a9c451a8054c.zip
dev-python/urwid: add optfeature on dev-python/trio
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/urwid')
-rw-r--r--dev-python/urwid/urwid-2.1.2.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-python/urwid/urwid-2.1.2.ebuild b/dev-python/urwid/urwid-2.1.2.ebuild
index 8e5ca05854ae..f2501abefd2a 100644
--- a/dev-python/urwid/urwid-2.1.2.ebuild
+++ b/dev-python/urwid/urwid-2.1.2.ebuild
@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_REQ_USE="ncurses"
-inherit distutils-r1
+inherit distutils-r1 optfeature
DESCRIPTION="Curses-based user interface library for Python"
HOMEPAGE="http://urwid.org/ https://pypi.org/project/urwid/ https://github.com/urwid/urwid/"
@@ -27,6 +27,9 @@ src_prepare() {
# Fix doc generation
sed -e 's/!defindex/layout/' -i docs/tools/templates/indexcontent.html || die
+ # Fix for >=dev-python/trio-0.15
+ sed -e 's/hazmat/lowlevel/' -i urwid/_async_kw_event_loop.py || die
+
distutils-r1_src_prepare
}
@@ -34,3 +37,7 @@ python_install_all() {
use examples && dodoc -r examples
distutils-r1_python_install_all
}
+
+pkg_postinst() {
+ optfeature "Trio event loop" "dev-python/trio"
+}