nixpkgs/pkgs/development/python-modules/pynvim/default.nix
2019-11-16 23:00:44 -08:00

40 lines
792 B
Nix

{ buildPythonPackage
, fetchPypi
, lib
, nose
, msgpack
, greenlet
, trollius
, pythonOlder
, isPyPy
, pytestrunner
}:
buildPythonPackage rec {
pname = "pynvim";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "1mp9ajsgrb9k2f3s8g7vdflj5mg02ii0d0wk4n6dmvjx52rqpzbi";
};
nativeBuildInputs = [
pytestrunner
];
# Tests require pkgs.neovim,
# which we cannot add because of circular dependency.
doCheck = false;
propagatedBuildInputs = [ msgpack ]
++ lib.optional (!isPyPy) greenlet
++ lib.optional (pythonOlder "3.4") trollius;
meta = {
description = "Python client for Neovim";
homepage = "https://github.com/neovim/python-client";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ];
};
}