python312Packages.pynvim: 0.5.0 -> 0.5.1 (#353309)

This commit is contained in:
Gaétan Lepage 2024-11-03 22:18:58 +01:00 committed by GitHub
commit add39c7b8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,44 +4,40 @@
fetchFromGitHub,
setuptools,
msgpack,
isPyPy,
greenlet,
pythonOlder,
isPyPy,
typing-extensions,
}:
buildPythonPackage rec {
pname = "pynvim";
version = "0.5.0";
version = "0.5.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "neovim";
repo = "pynvim";
rev = "refs/tags/${version}";
hash = "sha256-3LqgKENFzdfCjMlD6Xzv5W23yvIkNMUYo2+LlzKZ3cc=";
hash = "sha256-YVAWu+i2pElq8OhibSqh9ogk+xWDRCZT4niDF/oMnzY=";
};
postPatch = ''
substituteInPlace setup.py \
--replace " + pytest_runner" ""
'';
build-system = [ setuptools ];
buildInputs = [ setuptools ];
propagatedBuildInputs = [ msgpack ] ++ lib.optionals (!isPyPy) [ greenlet ];
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 = with lib; {
meta = {
description = "Python client for Neovim";
homepage = "https://github.com/neovim/pynvim";
changelog = "https://github.com/neovim/pynvim/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ figsoda ];
};
}