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