Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pynvim / default.nix
blob829ec7d68b121f33090c9f31f803e3ea492b750e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , msgpack
6 , greenlet
7 , pythonOlder
8 , isPyPy
9 }:
11 buildPythonPackage rec {
12   pname = "pynvim";
13   version = "0.5.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "neovim";
20     repo = "pynvim";
21     rev = "refs/tags/${version}";
22     hash = "sha256-3LqgKENFzdfCjMlD6Xzv5W23yvIkNMUYo2+LlzKZ3cc=";
23   };
25   postPatch = ''
26     substituteInPlace setup.py \
27       --replace " + pytest_runner" ""
28   '';
30   buildInputs = [
31     setuptools
32   ];
34   propagatedBuildInputs = [
35     msgpack
36   ] ++ lib.optionals (!isPyPy) [
37     greenlet
38   ];
40   # Tests require pkgs.neovim which we cannot add because of circular dependency
41   doCheck = false;
43   pythonImportsCheck = [
44     "pynvim"
45   ];
47   meta = with lib; {
48     description = "Python client for Neovim";
49     homepage = "https://github.com/neovim/pynvim";
50     changelog = "https://github.com/neovim/pynvim/releases/tag/${version}";
51     license = licenses.asl20;
52     maintainers = with maintainers; [ figsoda ];
53   };