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