nixpkgs/pkgs/development/python-modules/neovim/default.nix
2018-03-03 11:58:41 +01:00

42 lines
815 B
Nix

{ buildPythonPackage
, fetchPypi
, lib
, nose
, msgpack
, greenlet
, trollius
, pythonOlder
, isPyPy
}:
buildPythonPackage rec {
pname = "neovim";
version = "0.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "989d720dc7636aa4260aa7774fa79aa524f51515b262eb8d7e9ba4336f758a99";
};
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
# 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; [ garbas ];
};
}