Unverified Commit b4236222 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python313Packages.tree-sitter_0_21: drop (#400343)

parents ee566033 b371008f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ python3.pkgs.buildPythonApplication rec {
    pygls
    lsprotocol
    language-tool-python
    tree-sitter_0_21
    tree-sitter
    gitpython
    appdirs
    openai
+0 −48
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  pythonOlder,
  pythonAtLeast,
  setuptools,
  distutils,
}:

buildPythonPackage rec {
  pname = "tree-sitter";
  version = "0.21.3";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "tree-sitter";
    repo = "py-tree-sitter";
    rev = "refs/tags/v${version}";
    hash = "sha256-HT1sRzDFpeelWCq1ZMeRmoUg0a3SBR7bZKxBqn4fb2g=";
    fetchSubmodules = true;
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "tree_sitter" ];

  # Needed explicitly for Python >= 3.12 as tree-sitter provides
  # calls to distutils functions to compile language files
  dependencies = lib.optionals (pythonAtLeast "3.12") [ distutils ];

  preCheck = ''
    rm -r tree_sitter
  '';

  meta = with lib; {
    description = "Python bindings to the Tree-sitter parsing library";
    homepage = "https://github.com/tree-sitter/py-tree-sitter";
    changelog = "https://github.com/tree-sitter/py-tree-sitter/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -17554,8 +17554,6 @@ self: super: with self; {
  tree-sitter-yaml = callPackage ../development/python-modules/tree-sitter-yaml { };
  tree-sitter_0_21 = callPackage ../development/python-modules/tree-sitter/0_21.nix { };
  treelib = callPackage ../development/python-modules/treelib { };
  treelog = callPackage ../development/python-modules/treelog { };