biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / editors / neovim / neovim-remote.nix
blob0f3c2359aab16b9e6738685d41056ed512de53aa
1 { lib
2 , fetchFromGitHub
3 , python3
4 , neovim
5 , fetchpatch
6 }:
8 with python3.pkgs; buildPythonApplication rec {
9   pname = "neovim-remote";
10   version = "2.5.1";
12   src = fetchFromGitHub {
13     owner = "mhinz";
14     repo = "neovim-remote";
15     rev = "v${version}";
16     sha256 = "0lbz4w8hgxsw4k1pxafrl3rhydrvi5jc6vnsmkvnhh6l6rxlmvmq";
17   };
19   patches = [
20     # Fix a compatibility issue with neovim 0.8.0
21     (fetchpatch {
22       url = "https://github.com/mhinz/neovim-remote/commit/56d2a4097f4b639a16902390d9bdd8d1350f948c.patch";
23       hash = "sha256-/PjE+9yfHtOUEp3xBaobzRM8Eo2wqOhnF1Es7SIdxvM=";
24     })
25   ];
27   propagatedBuildInputs = [
28     pynvim
29     psutil
30     setuptools
31   ];
33   nativeCheckInputs = [
34     neovim
35     pytestCheckHook
36   ];
38   doCheck = !stdenv.isDarwin;
40   preCheck = ''
41     export HOME="$(mktemp -d)"
42   '';
44   meta = with lib; {
45     description = "A tool that helps controlling nvim processes from a terminal";
46     homepage = "https://github.com/mhinz/neovim-remote/";
47     license = licenses.mit;
48     maintainers = with maintainers; [ edanaher ];
49     platforms = platforms.unix;
50     mainProgram = "nvr";
51   };