mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
41 lines
792 B
Nix
41 lines
792 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, lib
|
|
, nose
|
|
, msgpack
|
|
, greenlet
|
|
, trollius
|
|
, pythonOlder
|
|
, isPyPy
|
|
, pytestrunner
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynvim";
|
|
version = "0.4.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0n2cx22lrmbq7xk7356lyn6k77ryqvkxplw9k0fglk35ckb1isam";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|