summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-06-11 11:12:56 +0200
committerMichał Górny <mgorny@gentoo.org>2023-06-11 11:21:38 +0200
commit4c5b2c9d3a796cc05afb99df86205a4e848cbf20 (patch)
tree7e85ead1d34e7936438933b455ed92684d86598f /dev-python/pywayland
parentmedia-sound/pavumeter: drop 0.9.3-r1 (diff)
downloadgentoo-4c5b2c9d3a796cc05afb99df86205a4e848cbf20.tar.gz
gentoo-4c5b2c9d3a796cc05afb99df86205a4e848cbf20.tar.bz2
gentoo-4c5b2c9d3a796cc05afb99df86205a4e848cbf20.zip
dev-python/pywayland: Replace virtual/python-cffi dependency + QA
Replace deprecated virtual/python-cffi and add missing `|| die` after `rm`. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pywayland')
-rw-r--r--dev-python/pywayland/pywayland-0.4.15.ebuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/dev-python/pywayland/pywayland-0.4.15.ebuild b/dev-python/pywayland/pywayland-0.4.15.ebuild
index 22d1f8d9f0dd..13737fa80279 100644
--- a/dev-python/pywayland/pywayland-0.4.15.ebuild
+++ b/dev-python/pywayland/pywayland-0.4.15.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
+PYTHON_COMPAT=( python3_{10..11} pypy3 )
inherit distutils-r1 xdg-utils
@@ -26,12 +26,17 @@ KEYWORDS="amd64 ~riscv ~x86"
RDEPEND="
dev-libs/wayland
- virtual/python-cffi[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/cffi[${PYTHON_USEDEP}]
+ ' 'python*')
"
-DEPEND="${RDEPEND}
+DEPEND="
+ ${RDEPEND}
dev-libs/wayland-protocols
"
-BDEPEND="dev-util/wayland-scanner"
+BDEPEND="
+ dev-util/wayland-scanner
+"
distutils_enable_tests pytest
@@ -43,7 +48,7 @@ python_prepare_all() {
python_test() {
# No die deliberately as sometimes it doesn't exist
- rm -r pywayland
+ rm -rf pywayland || die
epytest
}