2018-02-10 13:22:13 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, nose
|
|
|
|
, msgpack
|
|
|
|
, greenlet
|
|
|
|
, trollius
|
|
|
|
, pythonOlder
|
|
|
|
, isPyPy
|
2019-11-16 09:25:24 +00:00
|
|
|
, pytestrunner
|
2018-02-10 13:22:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-12-08 23:09:57 +00:00
|
|
|
pname = "pynvim";
|
2020-10-03 12:25:41 +00:00
|
|
|
version = "0.4.2";
|
2018-02-10 13:22:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-03 12:25:41 +00:00
|
|
|
sha256 = "6bc6204d465de5888a0c5e3e783fe01988b032e22ae87875912280bef0e40f8f";
|
2018-02-10 13:22:13 +00:00
|
|
|
};
|
|
|
|
|
2019-11-16 09:25:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pytestrunner
|
|
|
|
];
|
2018-02-10 13:22:13 +00:00
|
|
|
|
|
|
|
# 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 09:27:39 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2018-02-10 13:22:13 +00:00
|
|
|
};
|
|
|
|
}
|