From 7b3cd91f21972cfec3110775ef2f2c571696dd4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20L=2E=20C=2E=20Moreira?= Date: Sat, 14 Jan 2023 23:10:20 -0300 Subject: [PATCH] neovim-remote: update to 2.5.1 --- .../0001-Fix-tests-for-neovim-0.8.0.patch | 31 +++++++++++++++++++ srcpkgs/neovim-remote/template | 6 ++-- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/neovim-remote/patches/0001-Fix-tests-for-neovim-0.8.0.patch diff --git a/srcpkgs/neovim-remote/patches/0001-Fix-tests-for-neovim-0.8.0.patch b/srcpkgs/neovim-remote/patches/0001-Fix-tests-for-neovim-0.8.0.patch new file mode 100644 index 000000000000..60fd753315f4 --- /dev/null +++ b/srcpkgs/neovim-remote/patches/0001-Fix-tests-for-neovim-0.8.0.patch @@ -0,0 +1,31 @@ +Status: sent-upstream + +--- +From 56d2a4097f4b639a16902390d9bdd8d1350f948c Mon Sep 17 00:00:00 2001 +From: oxalica +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. +--- + tests/test_nvr.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_nvr.py b/tests/test_nvr.py +index 97e08ab..ea3e7f4 100755 +--- 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 + +-- +2.39.0 + diff --git a/srcpkgs/neovim-remote/template b/srcpkgs/neovim-remote/template index c510d263ec45..c2f406cfe8d9 100644 --- a/srcpkgs/neovim-remote/template +++ b/srcpkgs/neovim-remote/template @@ -1,7 +1,7 @@ # Template file for 'neovim-remote' pkgname=neovim-remote -version=2.4.0 -revision=4 +version=2.5.1 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-neovim python3-psutil" @@ -11,7 +11,7 @@ maintainer="Orphaned " license="MIT" homepage="https://github.com/mhinz/neovim-remote" distfiles="https://github.com/mhinz/neovim-remote/archive/v${version}.tar.gz" -checksum=4213b6eaad638aa20d8687362764843beb626e6e1a03bc3c8b3399bbfc11fbf7 +checksum=cff04df8d82ea99168de441b23ee1ed21d64c6cb2196cb2e3d65a6778c14da01 do_check() { python3 -m pytest