1{ buildPythonPackage
2, fetchPypi
3, lib
4, nose
5, msgpack
6, greenlet
7, trollius
8, pythonOlder
9, isPyPy
10, pytestrunner
11}:
12
13buildPythonPackage rec {
14 pname = "pynvim";
15 version = "0.4.1";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "0n2cx22lrmbq7xk7356lyn6k77ryqvkxplw9k0fglk35ckb1isam";
20 };
21
22 nativeBuildInputs = [
23 pytestrunner
24 ];
25
26 # Tests require pkgs.neovim,
27 # which we cannot add because of circular dependency.
28 doCheck = false;
29
30 propagatedBuildInputs = [ msgpack ]
31 ++ lib.optional (!isPyPy) greenlet
32 ++ lib.optional (pythonOlder "3.4") trollius;
33
34 meta = {
35 description = "Python client for Neovim";
36 homepage = "https://github.com/neovim/python-client";
37 license = lib.licenses.asl20;
38 maintainers = with lib.maintainers; [ ];
39 };
40}