commit:     0f72f97d8b7cf16c9cea558c0da54b967ab210a3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 21 16:50:38 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 21 17:05:49 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f72f97d

dev-python/neovim-remote: enable py3.11

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/neovim-remote-2.5.1-neovim-0.8.patch     | 22 ++++++++++++++++++++++
 .../neovim-remote/neovim-remote-2.5.1.ebuild       |  6 +++++-
 dev-python/neovim-remote/neovim-remote-9999.ebuild |  2 +-
 3 files changed, 28 insertions(+), 2 deletions(-)

diff --git 
a/dev-python/neovim-remote/files/neovim-remote-2.5.1-neovim-0.8.patch 
b/dev-python/neovim-remote/files/neovim-remote-2.5.1-neovim-0.8.patch
new file mode 100644
index 000000000000..ee0adf8f9211
--- /dev/null
+++ b/dev-python/neovim-remote/files/neovim-remote-2.5.1-neovim-0.8.patch
@@ -0,0 +1,22 @@
+https://github.com/mhinz/neovim-remote/pull/183
+
+From 56d2a4097f4b639a16902390d9bdd8d1350f948c Mon Sep 17 00:00:00 2001
+From: oxalica <oxal...@pm.me>
+Date: Sun, 2 Oct 2022 08:09:57 +0800
+Subject: [PATCH] Fix tests for neovim 0.8.0
+
+Since neovim/neovim#8519, `NVIM_LISTEN_ADDRESS` is only directly used
+when it contains colons or (back-)slashes. Otherwise it is concatanated
+with a tempdir prefix and suffixes to form the final path.
+--- a/tests/test_nvr.py
++++ b/tests/test_nvr.py
+@@ -18,7 +18,7 @@ def run_nvr(cmdlines, env):
+         nvr.main(cmdline, env)
+ 
+ def setup_env():
+-    env = {'NVIM_LISTEN_ADDRESS': 'pytest_socket_{}'.format(uuid.uuid4())}
++    env = {'NVIM_LISTEN_ADDRESS': './pytest_socket_{}'.format(uuid.uuid4())}
+     env.update(os.environ)
+     return env
+ 
+

diff --git a/dev-python/neovim-remote/neovim-remote-2.5.1.ebuild 
b/dev-python/neovim-remote/neovim-remote-2.5.1.ebuild
index 9eecf4f83161..1f8ea433f9c9 100644
--- a/dev-python/neovim-remote/neovim-remote-2.5.1.ebuild
+++ b/dev-python/neovim-remote/neovim-remote-2.5.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
 
 inherit distutils-r1
 
@@ -39,4 +39,8 @@ BDEPEND="
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.5.1-neovim-0.8.patch
+)
+
 distutils_enable_tests pytest

diff --git a/dev-python/neovim-remote/neovim-remote-9999.ebuild 
b/dev-python/neovim-remote/neovim-remote-9999.ebuild
index 9eecf4f83161..c4c5cdfd52ef 100644
--- a/dev-python/neovim-remote/neovim-remote-9999.ebuild
+++ b/dev-python/neovim-remote/neovim-remote-9999.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
 
 inherit distutils-r1
 

Reply via email to