depot/third_party/nixpkgs/pkgs/development/python-modules/pynvim/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

47 lines
943 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, msgpack
, greenlet
, pythonOlder
, isPyPy
}:
buildPythonPackage rec {
pname = "pynvim";
version = "0.4.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-OnlTeL3l6AkvvrOhqZvpxhPSaFVC8dsOXG/UZ+7Vbf8=";
};
postPatch = ''
substituteInPlace setup.py \
--replace " + pytest_runner" ""
'';
propagatedBuildInputs = [
msgpack
] ++ lib.optionals (!isPyPy) [
greenlet
];
# Tests require pkgs.neovim which we cannot add because of circular dependency
doCheck = false;
pythonImportsCheck = [
"pynvim"
];
meta = with lib; {
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 ];
};
}