1{ buildPythonPackage 2, fetchPypi 3, lib 4, nose 5, msgpack 6, greenlet 7, trollius 8, pythonOlder 9, isPyPy 10}: 11 12buildPythonPackage rec { 13 pname = "neovim"; 14 version = "0.2.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "0xlj54w9bnmq4vidk6r08hwa6az7drahi08w1qf4j9q45rs8mrbc"; 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}