dev-python/desktop-notifier: add 3.5.5

Closes: https://bugs.gentoo.org/910185
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu
2023-07-11 08:04:19 +03:00
parent 981117d781
commit 1862a77db1
3 changed files with 48 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST desktop-notifier-3.5.4.tar.gz 29763 BLAKE2B 0fdac4d6a52a54720fef43050d9374c6c57c05f270d2ff8adcbf9e8df4b059c10e9820bbf3f00406b7698deaa0b5d353c1c78b937eab7107d24008939809c08f SHA512 bc7f5bd3048489e646f34b8397aa97988ca839424675369157094f84439f9616e4463aee79912f2a74c810b98d0ceed699920748e6af2ef2debd2cd25c039944
DIST desktop-notifier-3.5.5.tar.gz 29785 BLAKE2B e2da1e2300cc36317da7ed079366488f94de829d55a4cded0f63f74f6f14563231128468a6234f060179e3af15677e6cbe8d1f270d271e96823a46d1009ff01b SHA512 b5cc42fda55719adf7afaae4addc24e5d21638e5b389f9c52c47d7b0daf2b1ed80c989a90d1f53e57edc320cac4af8d46d3dcdee30c499ed6717698af3f1b8e3

View File

@@ -0,0 +1,32 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
inherit distutils-r1 pypi
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
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/dbus-next[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/build[${PYTHON_USEDEP}]
"
PATCHES=( "${FILESDIR}"/${P}-importlib-resources.patch )

View File

@@ -0,0 +1,15 @@
dev-python/importlib-resources has been removed from Gentoo for python > 3.9
See also https://github.com/samschott/desktop-notifier/issues/92
--- a/src/desktop_notifier/base.py
+++ b/src/desktop_notifier/base.py
@@ -19,7 +19,7 @@
Sequence,
)
-from importlib_resources import files, as_file
+from importlib.resources import files, as_file
logger = logging.getLogger(__name__)