Unverified Commit add39c7b authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.pynvim: 0.5.0 -> 0.5.1 (#353309)

parents cacae035 9fa7866c
Loading
Loading
Loading
Loading
+11 −15
Original line number Diff line number Diff line
@@ -4,44 +4,40 @@
  fetchFromGitHub,
  setuptools,
  msgpack,
  isPyPy,
  greenlet,
  pythonOlder,
  isPyPy,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "pynvim";
  version = "0.5.0";
  version = "0.5.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "neovim";
    repo = "pynvim";
    rev = "refs/tags/${version}";
    hash = "sha256-3LqgKENFzdfCjMlD6Xzv5W23yvIkNMUYo2+LlzKZ3cc=";
    hash = "sha256-YVAWu+i2pElq8OhibSqh9ogk+xWDRCZT4niDF/oMnzY=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace " + pytest_runner" ""
  '';

  buildInputs = [ setuptools ];
  build-system = [ setuptools ];

  propagatedBuildInputs = [ msgpack ] ++ lib.optionals (!isPyPy) [ greenlet ];
  dependencies =
    [ msgpack ]
    ++ lib.optionals (!isPyPy) [ greenlet ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ];

  # Tests require pkgs.neovim which we cannot add because of circular dependency
  doCheck = false;

  pythonImportsCheck = [ "pynvim" ];

  meta = with lib; {
  meta = {
    description = "Python client for Neovim";
    homepage = "https://github.com/neovim/pynvim";
    changelog = "https://github.com/neovim/pynvim/releases/tag/${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ figsoda ];
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ figsoda ];
  };
}