commit:     1862a77db17eef7cd95623805ffbe4873a231917
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 11 05:04:19 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Tue Jul 11 05:04:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1862a77d

dev-python/desktop-notifier: add 3.5.5

Closes: https://bugs.gentoo.org/910185
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 dev-python/desktop-notifier/Manifest               |  1 +
 .../desktop-notifier/desktop-notifier-3.5.5.ebuild | 32 ++++++++++++++++++++++
 ...esktop-notifier-3.5.5-importlib-resources.patch | 15 ++++++++++
 3 files changed, 48 insertions(+)

diff --git a/dev-python/desktop-notifier/Manifest 
b/dev-python/desktop-notifier/Manifest
index e034c365f..089d44be7 100644
--- a/dev-python/desktop-notifier/Manifest
+++ b/dev-python/desktop-notifier/Manifest
@@ -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

diff --git a/dev-python/desktop-notifier/desktop-notifier-3.5.5.ebuild 
b/dev-python/desktop-notifier/desktop-notifier-3.5.5.ebuild
new file mode 100644
index 000000000..bc9b4ccfd
--- /dev/null
+++ b/dev-python/desktop-notifier/desktop-notifier-3.5.5.ebuild
@@ -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 )

diff --git 
a/dev-python/desktop-notifier/files/desktop-notifier-3.5.5-importlib-resources.patch
 
b/dev-python/desktop-notifier/files/desktop-notifier-3.5.5-importlib-resources.patch
new file mode 100644
index 000000000..9780c19d8
--- /dev/null
+++ 
b/dev-python/desktop-notifier/files/desktop-notifier-3.5.5-importlib-resources.patch
@@ -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__)

Reply via email to