blob: dbbcfb6ece8ed44be85972b7eface3a61d454df6 (
plain)
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
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
msgpack,
isPyPy,
greenlet,
pythonOlder,
typing-extensions,
}:
buildPythonPackage rec {
pname = "pynvim";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "neovim";
repo = "pynvim";
tag = version;
hash = "sha256-Wxn4g/lFelAJx0Zz2yaeXqX56xeOWUJNb2p8EiJgKE0=";
};
build-system = [ setuptools ];
dependencies = [
msgpack
]
++ lib.optionals (!isPyPy) [ greenlet ]
++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];
# Tests require pkgs.neovim which we cannot add because of circular dependency
doCheck = false;
pythonImportsCheck = [ "pynvim" ];
meta = {
description = "Python client for Neovim";
homepage = "https://github.com/neovim/pynvim";
changelog = "https://github.com/neovim/pynvim/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|