2018-02-10 13:22:13 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, nose
|
|
|
|
, msgpack
|
|
|
|
, greenlet
|
|
|
|
, 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";
|
2021-03-24 09:28:23 +00:00
|
|
|
version = "0.4.3";
|
2021-04-30 07:38:42 +00:00
|
|
|
disabled = pythonOlder "3.4";
|
2018-02-10 13:22:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-10 05:08:38 +00:00
|
|
|
sha256 = "sha256-OnlTeL3l6AkvvrOhqZvpxhPSaFVC8dsOXG/UZ+7Vbf8=";
|
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 ]
|
2021-04-30 07:38:42 +00:00
|
|
|
++ lib.optional (!isPyPy) greenlet;
|
2018-02-10 13:22:13 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|