2018-02-10 13:22:13 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, nose
|
|
|
|
, msgpack
|
|
|
|
, greenlet
|
|
|
|
, trollius
|
|
|
|
, pythonOlder
|
|
|
|
, isPyPy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-12-08 23:09:57 +00:00
|
|
|
pname = "pynvim";
|
2019-01-27 14:28:55 +00:00
|
|
|
version = "0.3.2";
|
2018-02-10 13:22:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-27 14:28:55 +00:00
|
|
|
sha256 = "01dybk4vs452pljn1q3il5z2sd313ki0lgiglc0xmjc6wp290r6g";
|
2018-02-10 13:22:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests require pkgs.neovim,
|
|
|
|
# which we cannot add because of circular dependency.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ msgpack ]
|
|
|
|
++ lib.optional (!isPyPy) greenlet
|
|
|
|
++ lib.optional (pythonOlder "3.4") trollius;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python client for Neovim";
|
|
|
|
homepage = "https://github.com/neovim/python-client";
|
|
|
|
license = lib.licenses.asl20;
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2018-02-10 13:22:13 +00:00
|
|
|
};
|
|
|
|
}
|