diff --git a/dev-python/desktop-notifier/Manifest b/dev-python/desktop-notifier/Manifest
index e87196e9be..5f5c8f6e3b 100644
--- a/dev-python/desktop-notifier/Manifest
+++ b/dev-python/desktop-notifier/Manifest
@@ -1,2 +1 @@
-DIST desktop-notifier-3.3.2.gh.tar.gz 4595234 BLAKE2B c53383b8f15c36acb21a77695b8a76e782f912078ba7c5946fe55c2e8c3c950ece7581a81a69dbee12553be7155364c9165336d7f2b814ccb0e3076dc082cf85 SHA512 d93825ea4880428e9eb41f0adff27e963ebeae23aa5cdc8c77e4a60aecee69aa1448f9aca8b12520597b52df531580e29e3458c2ea7b4f2e60eda68de5dfbe9f
DIST desktop-notifier-3.4.2.gh.tar.gz 4598129 BLAKE2B 61f2b7386e351e3f5bb936af147a127e66e16520b92aaedbe2c2570ffb33ca15e13ba3f46f2953c8fafd2e01c9d85bad00505f1e071f63a2412f39828204a6a2 SHA512 e00f3a33f2e6d719b8c293640049ad7238fb071cd2bc73d8b5bde538f761868d1498de110f052764b5be5bf8f42d6055e6364db2fdfaebdeeb0f608bf74dd511
diff --git a/dev-python/desktop-notifier/desktop-notifier-3.3.2.ebuild b/dev-python/desktop-notifier/desktop-notifier-3.3.2.ebuild
deleted file mode 100644
index 8ceb284a4d..0000000000
--- a/dev-python/desktop-notifier/desktop-notifier-3.3.2.ebuild
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 2021-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="desktop-notifier is a Python library for cross-platform desktop notifications"
-HOMEPAGE="
- https://desktop-notifier.readthedocs.io
- https://pypi.org/project/desktop-notifier/
- https://github.com/samschott/desktop-notifier
-"
-SRC_URI="https://github.com/samschott/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
- dev-python/wheel[${PYTHON_USEDEP}]
- dev-python/packaging[${PYTHON_USEDEP}]
- dev-python/python-dbus-next[${PYTHON_USEDEP}]
- $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_8)
-"
diff --git a/dev-python/dropbox-sdk-python/Manifest b/dev-python/dropbox-sdk-python/Manifest
index b21c57ee43..f5a57eb035 100644
--- a/dev-python/dropbox-sdk-python/Manifest
+++ b/dev-python/dropbox-sdk-python/Manifest
@@ -1 +1 @@
-DIST dropbox-sdk-python-11.28.0.tar.gz 1155409 BLAKE2B b4b664b0f3c0ebaef23a4878d5331293f015b23fd8c5ed4f691dd309a98a21b82f67bc4f7cd0eced446d055808d17d6871088b1126499e340f34b15e7d6a013f SHA512 9776a75962d7370ea38b50d05801b662884086ccf865288f00cb0941143f41f8d9ab0947676cd403acdc92cd08fce519bf9f1471da9ccc64f0dd7278487be174
+DIST dropbox-sdk-python-11.28.0.gh.tar.gz 1155409 BLAKE2B b4b664b0f3c0ebaef23a4878d5331293f015b23fd8c5ed4f691dd309a98a21b82f67bc4f7cd0eced446d055808d17d6871088b1126499e340f34b15e7d6a013f SHA512 9776a75962d7370ea38b50d05801b662884086ccf865288f00cb0941143f41f8d9ab0947676cd403acdc92cd08fce519bf9f1471da9ccc64f0dd7278487be174
diff --git a/dev-python/dropbox-sdk-python/dropbox-sdk-python-11.28.0.ebuild b/dev-python/dropbox-sdk-python/dropbox-sdk-python-11.28.0.ebuild
index 2a157f43b6..da08fdbe62 100644
--- a/dev-python/dropbox-sdk-python/dropbox-sdk-python-11.28.0.ebuild
+++ b/dev-python/dropbox-sdk-python/dropbox-sdk-python-11.28.0.ebuild
@@ -3,13 +3,13 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
-
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
DESCRIPTION="The offical Dropbox SDK for Python"
HOMEPAGE="https://www.dropbox.com/developers"
-SRC_URI="https://github.com/dropbox/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/dropbox/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
diff --git a/dev-python/python-dbus-next/python-dbus-next-0.2.3.ebuild b/dev-python/python-dbus-next/python-dbus-next-0.2.3.ebuild
index af2574febc..d75c7a6374 100644
--- a/dev-python/python-dbus-next/python-dbus-next-0.2.3.ebuild
+++ b/dev-python/python-dbus-next/python-dbus-next-0.2.3.ebuild
@@ -3,8 +3,8 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..11} )
-
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="python-dbus-next is a Python library for DBus"
@@ -21,11 +21,9 @@ KEYWORDS="~amd64 ~x86"
BDEPEND="test? ( dev-python/pytest-asyncio[${PYTHON_USEDEP}] )"
distutils_enable_tests pytest
-distutils_enable_sphinx docs \
- dev-python/sphinxcontrib-asyncio \
- dev-python/sphinxcontrib-fulltoc
# some tests fail with:
-# dbus_next.errors.InvalidAddressError: DBUS_SESSION_BUS_ADDRESS not set and could not get DISPLAY environment variable to get bus addres
+# dbus_next.errors.InvalidAddressError:
+# DBUS_SESSION_BUS_ADDRESS not set and could not get DISPLAY environment variable to get bus addres
# or require certain services to be installed (like org.freedesktop.DBus.Debug.Stats)
RESTRICT="test"
diff --git a/dev-python/sdnotify/sdnotify-0.3.2.ebuild b/dev-python/sdnotify/sdnotify-0.3.2.ebuild
index 8db5658f51..a15bda8890 100644
--- a/dev-python/sdnotify/sdnotify-0.3.2.ebuild
+++ b/dev-python/sdnotify/sdnotify-0.3.2.ebuild
@@ -3,9 +3,8 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..11} )
-DISTUTILS_USE_SETUPTOOLS=no
-
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="Python implementation of the systemd sd_notify protocol"
@@ -18,3 +17,10 @@ SRC_URI="https://github.com/bb4242/${PN}/archive/refs/tags/v${PV}.tar.gz -> bb42
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+
+python_prepare_all() {
+ # Fix QA warning. No point in reporting upstream, the project seems abandoned
+ sed 's/description-file/description_file/' -i setup.cfg
+
+ distutils-r1_python_prepare_all
+}
diff --git a/dev-python/sphinxcontrib-fulltoc/Manifest b/dev-python/sphinxcontrib-fulltoc/Manifest
deleted file mode 100644
index c052bc08e4..0000000000
--- a/dev-python/sphinxcontrib-fulltoc/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST sphinxcontrib-fulltoc-1.2.gh.tar.gz 12366 BLAKE2B 229fed6e70f6908152b88ad192fcc19df862905d5c99580f0bd9be8dc44f2a6355c14d6121e69f6e9beec3111d2328d05158052712cc0e5f287f1872ed792e9b SHA512 ea622e1918711390d58061e3608ea8e4d72ccc104c7f80577060c0cc8d608d78b5bdbf097302cf3f96153643266b4edc1a70d039b3f2e1ec555a230cd06671c9
diff --git a/dev-python/sphinxcontrib-fulltoc/metadata.xml b/dev-python/sphinxcontrib-fulltoc/metadata.xml
deleted file mode 100644
index 733a38efbc..0000000000
--- a/dev-python/sphinxcontrib-fulltoc/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- ceamac@gentoo.org
- Primary maintainer
-
-
- sphinx-contrib/fulltoc
- sphinxcontrib-fulltoc
-
-
diff --git a/dev-python/sphinxcontrib-fulltoc/sphinxcontrib-fulltoc-1.2.ebuild b/dev-python/sphinxcontrib-fulltoc/sphinxcontrib-fulltoc-1.2.ebuild
deleted file mode 100644
index 0f876d09fc..0000000000
--- a/dev-python/sphinxcontrib-fulltoc/sphinxcontrib-fulltoc-1.2.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 2021-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..11} )
-inherit distutils-r1
-
-DESCRIPTION="python-dbus-next is a Python library for DBus"
-HOMEPAGE="
- https://github.com/sphinx-contrib/fulltoc
- https://pypi.org/project/sphinxcontrib-fulltoc/
- https://sphinxcontrib-fulltoc.readthedocs.io
-"
-SRC_URI="https://github.com/sphinx-contrib/fulltoc/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]"
-BDEPEND="dev-python/pbr[${PYTHON_USEDEP}]"
-
-export OSLO_PACKAGE_VERSION=${PV}
-
-S="${WORKDIR}/fulltoc-${PV}"
-
-distutils_enable_tests setup.py
-
-python_install_all() {
- distutils-r1_python_install_all
- find "${D}" -name '*.pth' -delete || die
-}
diff --git a/dev-python/stone/Manifest b/dev-python/stone/Manifest
index 619d554c04..8a0159f953 100644
--- a/dev-python/stone/Manifest
+++ b/dev-python/stone/Manifest
@@ -1 +1 @@
-DIST stone-3.3.1.tar.gz 282831 BLAKE2B b9a866e43feedea28cd33b89f78100be520a2756fa78888e9a786ae27942a5c19df51010c0af952de70c782d3fc3588de1ae0f58450d807053989bb91d285f15 SHA512 ee07f01b6f10e771afbe6ca6f07d7efa24a5460e5c163f339ae84a8b7742a659f5cb535e674a2f315d1bfa95b7c02e56f46db1f397188b5b6705f6c00c1e9d73
+DIST stone-3.3.1.gh.tar.gz 282831 BLAKE2B b9a866e43feedea28cd33b89f78100be520a2756fa78888e9a786ae27942a5c19df51010c0af952de70c782d3fc3588de1ae0f58450d807053989bb91d285f15 SHA512 ee07f01b6f10e771afbe6ca6f07d7efa24a5460e5c163f339ae84a8b7742a659f5cb535e674a2f315d1bfa95b7c02e56f46db1f397188b5b6705f6c00c1e9d73
diff --git a/dev-python/stone/files/stone-3.3.1-python3_11.patch b/dev-python/stone/files/stone-3.3.1-python3_11.patch
new file mode 100644
index 0000000000..f2826fdc52
--- /dev/null
+++ b/dev-python/stone/files/stone-3.3.1-python3_11.patch
@@ -0,0 +1,15 @@
+Replace method deprecated in 3.10 and removed in 3.11. Upstream is slow to release a fix.
+
+See also: https://github.com/dropbox/stone/issues/288
+
+--- a/stone/frontend/ir_generator.py
++++ b/stone/frontend/ir_generator.py
+@@ -1074,7 +1074,7 @@
+ assert issubclass(data_type_class, DataType), \
+ 'Expected stone.data_type.DataType, got %r' % data_type_class
+
+- argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression
++ argspec = inspect.getfullargspec(data_type_class.__init__)
+ argspec.args.remove('self')
+ num_args = len(argspec.args)
+ # Unfortunately, argspec.defaults is None if there are no defaults
diff --git a/dev-python/stone/stone-3.3.1.ebuild b/dev-python/stone/stone-3.3.1.ebuild
index 09fba448ad..e588e6fa82 100644
--- a/dev-python/stone/stone-3.3.1.ebuild
+++ b/dev-python/stone/stone-3.3.1.ebuild
@@ -3,7 +3,8 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
@@ -13,7 +14,7 @@ HOMEPAGE="
https://github.com/dropbox/stone
https://pypi.org/project/stone/
"
-SRC_URI="https://github.com/dropbox/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/dropbox/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
@@ -24,6 +25,8 @@ RDEPEND="
>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
"
+PATCHES=( "${FILESDIR}"/${P}-python3_11.patch )
+
distutils_enable_tests pytest
python_prepare_all() {
diff --git a/dev-python/survey/survey-3.4.3.ebuild b/dev-python/survey/survey-3.4.3.ebuild
index 5e5c9028b2..a631e53b49 100644
--- a/dev-python/survey/survey-3.4.3.ebuild
+++ b/dev-python/survey/survey-3.4.3.ebuild
@@ -3,8 +3,8 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..11} )
-
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="A simple library for creating beautiful interactive prompts"
diff --git a/dev-python/wrapio/wrapio-2.0.0.ebuild b/dev-python/wrapio/wrapio-2.0.0.ebuild
index ded66d47fe..a98841ada6 100644
--- a/dev-python/wrapio/wrapio-2.0.0.ebuild
+++ b/dev-python/wrapio/wrapio-2.0.0.ebuild
@@ -3,8 +3,8 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..11} )
-
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="Handling event-based streams in Python"
diff --git a/net-misc/maestral-qt/Manifest b/net-misc/maestral-qt/Manifest
index aef829ab6d..53b2837e5a 100644
--- a/net-misc/maestral-qt/Manifest
+++ b/net-misc/maestral-qt/Manifest
@@ -1,2 +1,2 @@
-DIST maestral-qt-1.5.3.tar.gz 1209467 BLAKE2B d810df1f7e21938b81565afb16049e385c5de1e295d64feeaa317966e139ddc76542a747db71ae76dc1c82a11ec7e266b69968cefa2839878941def4af7711f8 SHA512 fbc8723d6751e31504529a62f00f7becd4531d8613559edde2a4725bc0d5ac783e6c817814059489bead87923135462a871cdffd0f8d1f0f06481df20efde4f5
+DIST maestral-qt-1.5.3.gh.tar.gz 1209467 BLAKE2B d810df1f7e21938b81565afb16049e385c5de1e295d64feeaa317966e139ddc76542a747db71ae76dc1c82a11ec7e266b69968cefa2839878941def4af7711f8 SHA512 fbc8723d6751e31504529a62f00f7becd4531d8613559edde2a4725bc0d5ac783e6c817814059489bead87923135462a871cdffd0f8d1f0f06481df20efde4f5
DIST maestral-qt-1.6.5.gh.tar.gz 1217959 BLAKE2B fb57171e3b6ed286e03d143e0fbd7dba0eae69bd4402c271bd9897549d84f3b509f459577f0c44ba252bca6a9b651d70bd825565e2afdb86a97966a728803eaf SHA512 f34ca35fad1b1509a1cea605974c5f0ffb79763c2e6e6dcf68454246dd303d67274e1e46954270cd0d2eb171a427af2ef477cc19d0bb05634a3aeb593f69d7aa
diff --git a/net-misc/maestral-qt/maestral-qt-1.5.3.ebuild b/net-misc/maestral-qt/maestral-qt-1.5.3.ebuild
index 9817cf0bbb..63d940d7ad 100644
--- a/net-misc/maestral-qt/maestral-qt-1.5.3.ebuild
+++ b/net-misc/maestral-qt/maestral-qt-1.5.3.ebuild
@@ -3,14 +3,14 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{9..10} )
DISTUTILS_USE_PEP517=setuptools
inherit desktop distutils-r1
DESCRIPTION="Maestral is an open-source Dropbox client written in Python"
HOMEPAGE="https://maestral.app"
-SRC_URI="https://github.com/samschott/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/samschott/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
@@ -22,7 +22,6 @@ RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]
>=dev-python/PyQt5-5.9[widgets,gui,${PYTHON_USEDEP}]
~net-misc/maestral-${PV}[${PYTHON_USEDEP}]
- $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_8)
"
BDEPEND="
dev-python/build[${PYTHON_USEDEP}]
diff --git a/net-misc/maestral-qt/maestral-qt-1.6.5.ebuild b/net-misc/maestral-qt/maestral-qt-1.6.5.ebuild
index 43ea845589..d8487dfb42 100644
--- a/net-misc/maestral-qt/maestral-qt-1.6.5.ebuild
+++ b/net-misc/maestral-qt/maestral-qt-1.6.5.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
inherit desktop distutils-r1
@@ -22,7 +22,6 @@ RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/PyQt6[widgets,gui,svg,${PYTHON_USEDEP}]
~net-misc/maestral-${PV}[${PYTHON_USEDEP}]
- $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_8)
"
BDEPEND="
dev-python/build[${PYTHON_USEDEP}]
diff --git a/net-misc/maestral/Manifest b/net-misc/maestral/Manifest
index 993c014683..e38fa58d12 100644
--- a/net-misc/maestral/Manifest
+++ b/net-misc/maestral/Manifest
@@ -1,2 +1,2 @@
-DIST maestral-1.5.3.tar.gz 8280040 BLAKE2B dcda43880cea3fb00098b6bf87e43318a523a7c9d83886efff58be715cde17f67504b31735a006b951963e5cf0ef70b4b6431cb84200722cae186053a01edd63 SHA512 aa21277623f4e6f3283cd989be910eeb1caa3a842abca595b27a551c1c9bd1e7ef083e495ee0f096190accd91835939cb2f4a26624feae0046d8770d53aaac2f
+DIST maestral-1.5.3.gh.tar.gz 8280040 BLAKE2B dcda43880cea3fb00098b6bf87e43318a523a7c9d83886efff58be715cde17f67504b31735a006b951963e5cf0ef70b4b6431cb84200722cae186053a01edd63 SHA512 aa21277623f4e6f3283cd989be910eeb1caa3a842abca595b27a551c1c9bd1e7ef083e495ee0f096190accd91835939cb2f4a26624feae0046d8770d53aaac2f
DIST maestral-1.6.5.gh.tar.gz 7983512 BLAKE2B b77cc7eb1a6089cc78e47680d99a53bc4c4752feed3970a57e67eefcf1ab2491c0b3aaebd2fb7caf6fc5420eef2e7fe8776e87047f82db7d1466a4c3d17beaf8 SHA512 ee182505b305dbd6730078ce71725eb75515fb5682889c5226c26a69d32f85ad28e335bcd65b57fd1624da8ecd8914df337a93f6b296d86dcc6e94d4f2747995
diff --git a/net-misc/maestral/maestral-1.5.3.ebuild b/net-misc/maestral/maestral-1.5.3.ebuild
index e62609106a..178fe7ac2b 100644
--- a/net-misc/maestral/maestral-1.5.3.ebuild
+++ b/net-misc/maestral/maestral-1.5.3.ebuild
@@ -3,14 +3,14 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{9..10} )
DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1 xdg-utils
+inherit distutils-r1 xdg
DESCRIPTION="Maestral is an open-source Dropbox client written in Python"
HOMEPAGE="https://maestral.app"
-SRC_URI="https://github.com/samschott/maestral/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/samschott/maestral/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
@@ -32,29 +32,18 @@ RDEPEND="
>=dev-python/survey-3.4.3[${PYTHON_USEDEP}]
=dev-python/watchdog-2.0.1[${PYTHON_USEDEP}]
- $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_8)
"
BDEPEND="
dev-python/build[${PYTHON_USEDEP}]
test? ( dev-python/pytest-benchmark[${PYTHON_USEDEP}] )
"
+EPYTEST_DESELECT=(
+ # requires systemd
+ tests/offline/test_cli.py::test_autostart
+
+ # requires network
+ tests/offline/test_main.py::test_check_for_updates
+)
+
distutils_enable_tests pytest
-
-python_prepare_all() {
- # this test requires systemd
- sed -i -e 's/test_autostart/_&/' tests/offline/test_cli.py || die
-
- # this test requires network
- sed -i -e 's/test_check_for_updates/_&/' tests/offline/test_main.py || die
-
- distutils-r1_python_prepare_all
-}
-
-pkg_postinst() {
- xdg_icon_cache_update
-}
-
-pkg_postrm() {
- xdg_icon_cache_update
-}
diff --git a/net-misc/maestral/maestral-1.6.5.ebuild b/net-misc/maestral/maestral-1.6.5.ebuild
index a540a2de76..6ac6e77739 100644
--- a/net-misc/maestral/maestral-1.6.5.ebuild
+++ b/net-misc/maestral/maestral-1.6.5.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 xdg
@@ -32,21 +32,20 @@ RDEPEND="
>=dev-python/survey-3.4.3[${PYTHON_USEDEP}]
=dev-python/watchdog-2.0.1[${PYTHON_USEDEP}]
- $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_8)
"
BDEPEND="
dev-python/build[${PYTHON_USEDEP}]
- test? ( dev-python/pytest-benchmark[${PYTHON_USEDEP}] )
"
+EPYTEST_DESELECT=(
+ # requires dev-python/pytest-benchmark not available for py3.11
+ tests/offline/test_clean_local_events.py::test_performance
+
+ # requires systemd
+ tests/offline/test_cli.py::test_autostart
+
+ # requires network
+ tests/offline/test_main.py::test_check_for_updates
+)
+
distutils_enable_tests pytest
-
-python_prepare_all() {
- # this test requires systemd
- sed -i -e 's/test_autostart/_&/' tests/offline/test_cli.py || die
-
- # this test requires network
- sed -i -e 's/test_check_for_updates/_&/' tests/offline/test_main.py || die
-
- distutils-r1_python_prepare_all
-}