nixpkgs/pkgs/development/python-modules/pynvim/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

39 lines
756 B
Nix

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