nixpkgs/pkgs/development/python-modules/neovim/default.nix
Matthieu Coudron 366c79e17f pythonPackages.neovim: 0.2.3 -> 0.2.4
required to work with latest deoplete for instance
2018-03-20 18:38:44 +09:00

42 lines
803 B
Nix

{ buildPythonPackage
, fetchPypi
, lib
, nose
, msgpack
, greenlet
, trollius
, pythonOlder
, isPyPy
}:
buildPythonPackage rec {
pname = "neovim";
version = "0.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "0accfgyvihs08bwapgakx6w93p4vbrq2448n2z6gw88m2hja9jm3";
};
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 ];
};
}