Subject: [PATCH] Add package neovim-remote and it's dependencies

From: [email-masked]
Date: Wed, 15 May 2019 18:43:04 +0300

From: Doron Behar <[email-masked]>

---
 gnu/packages/python-xyz.scm | 95 +++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5ed1ebdd3c..1b8e2325d3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15665,3 +15665,98 @@ processes may share the same data.")
     (description "A Sphinx extension to convert SVG images to PDF in case the builder does not support
 SVG images natively (e.g. LaTeX).")
     (license license:bsd-3)))
+
+(define-public python-pyuv
+  (package
+    (name "python-pyuv")
+    (version "1.4.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "pyuv" version))
+        (sha256
+          (base32
+            "1hpvjsy8zs8ifw0glzfxp3ll8a67mg413hp3pmyf2pqjs4221sna"))))
+    (inputs `(("libuv" ,libuv)))
+    (build-system python-build-system)
+    (home-page "http://github.com/saghul/pyuv")
+    (synopsis "Python interface for libuv")
+    (description "Python interface for libuv")
+    (license #f)))
+
+(define-public python-pynvim
+  (package
+    (name "python-pynvim")
+    (version "0.3.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "pynvim" version))
+        (sha256
+          (base32
+            "01dybk4vs452pljn1q3il5z2sd313ki0lgiglc0xmjc6wp290r6g"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:tests? #f)) ;; tests fail. Reported upstream: https://github.com/neovim/pynvim/issues/394
+    (propagated-inputs
+      `(("python-greenlet" ,python-greenlet)
+        ("python-msgpack" ,python-msgpack)
+        ))
+    (native-inputs
+      `(("python-pytest" ,python-pytest)))
+    (home-page
+      "http://github.com/neovim/python-client")
+    (synopsis "Python client to neovim")
+    (description "Python client to neovim")
+    (license #f)))
+
+(define-public python-greenlet
+  (package
+    (name "python-greenlet")
+    (version "0.4.15")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "greenlet" version))
+        (sha256
+          (base32
+            "1g4g1wwc472ds89zmqlpyan3fbnzpa8qm48z3z1y6mlk44z485ll"))))
+    (build-system python-build-system)
+    (home-page
+      "https://github.com/python-greenlet/greenlet")
+    (synopsis
+      "Lightweight in-process concurrent programming")
+    (description
+      "Lightweight in-process concurrent programming")
+    (license #f)))
+
+(define-public neovim-remote
+  (package
+    (name "neovim-remote")
+    (version "2.1.7")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "neovim-remote" version))
+        (sha256
+          (base32
+            "1sw2j88w6nzjznj6b26mk0p6ka7svmlz4ccl00nszpg6j6l9j1cx"))))
+    (build-system python-build-system)
+    (inputs `(
+              ("python-psutil" ,python-psutil)
+              ("python-setuptools" ,python-setuptools)
+              ("python-pynvim" ,python-pynvim)
+              ))
+    (home-page
+      "https://github.com/mhinz/neovim-remote")
+    (synopsis
+      "Control nvim processes using \"nvr\" commandline tool")
+    (description
+      "This package provides an executable called nvr which solves these cases:
+  @itemize @bullet
+  @item
+  Controlling nvim processes from the shell. E.g. opening files in another terminal window.
+  @item
+  Opening files from within :terminal without starting a nested nvim process.
+  @end itemize")
+    (license license:expat)))
-- 
2.21.0