summary refs log tree commit diff
path: root/pkgs/development/python-modules/pynvim/default.nix
blob: 67079a8c1d26b2856c88c43258b38754d34a57a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ buildPythonPackage
, fetchPypi
, lib
, nose
, msgpack
, greenlet
, pythonOlder
, isPyPy
, pytest-runner
}:

buildPythonPackage rec {
  pname = "pynvim";
  version = "0.4.3";
  disabled = pythonOlder "3.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-OnlTeL3l6AkvvrOhqZvpxhPSaFVC8dsOXG/UZ+7Vbf8=";
  };

  nativeBuildInputs = [
    pytest-runner
  ];

  # Tests require pkgs.neovim,
  # which we cannot add because of circular dependency.
  doCheck = false;

  propagatedBuildInputs = [ msgpack ]
    ++ lib.optional (!isPyPy) greenlet;

  meta = {
    description = "Python client for Neovim";
    homepage = "https://github.com/neovim/python-client";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ ];
  };
}