public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-misc/nyx/files/, net-misc/nyx/
@ 2024-11-06 10:47 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-11-06 10:47 UTC (permalink / raw
  To: gentoo-commits

commit:     585c470519cdd7f0b27dd465d96f8a7b3ed03b59
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  6 10:37:13 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov  6 10:46:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=585c4705

net-misc/nyx: fix Python 3.11 compat

Closes: https://bugs.gentoo.org/942871
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/nyx/files/nyx-2.1.0-py311.patch                  | 11 +++++++++++
 net-misc/nyx/{nyx-2.1.0-r6.ebuild => nyx-2.1.0-r7.ebuild} |  4 ++++
 2 files changed, 15 insertions(+)

diff --git a/net-misc/nyx/files/nyx-2.1.0-py311.patch b/net-misc/nyx/files/nyx-2.1.0-py311.patch
new file mode 100644
index 000000000000..10dbc70b1373
--- /dev/null
+++ b/net-misc/nyx/files/nyx-2.1.0-py311.patch
@@ -0,0 +1,11 @@
+--- a/nyx/panel/__init__.py
++++ b/nyx/panel/__init__.py
+@@ -78,7 +78,7 @@
+       is_match = self._key_func(key) if self._key_func else key.match(self.key)
+ 
+       if is_match:
+-        if inspect.getargspec(self._action).args == ['key']:
++        if inspect.getfullargspec(self._action).args == ['key']:
+           self._action(key)
+         else:
+           self._action()

diff --git a/net-misc/nyx/nyx-2.1.0-r6.ebuild b/net-misc/nyx/nyx-2.1.0-r7.ebuild
similarity index 93%
rename from net-misc/nyx/nyx-2.1.0-r6.ebuild
rename to net-misc/nyx/nyx-2.1.0-r7.ebuild
index 555893ccf513..c980ee277f0c 100644
--- a/net-misc/nyx/nyx-2.1.0-r6.ebuild
+++ b/net-misc/nyx/nyx-2.1.0-r7.ebuild
@@ -27,6 +27,10 @@ RDEPEND="
 	net-vpn/tor
 "
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-2.1.0-py311.patch
+)
+
 distutils_enable_tests unittest
 
 python_install_all() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-06 10:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 10:47 [gentoo-commits] repo/gentoo:master commit in: net-misc/nyx/files/, net-misc/nyx/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox