Commit 8eb41be9 authored by natsukium's avatar natsukium Committed by Doron Behar
Browse files

python312Packages.tree-sitter-languages: don't propagate versioned tree-sitter

Python packages must not propagate such versioned packages due to PYTHONPATH conflicts.
parent 4504cc19
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
  fetchFromGitHub,
  setuptools,
  cython,
  tree-sitter0_21,
  tree-sitter,
  pytestCheckHook,
  python,
}:
@@ -36,10 +36,7 @@ buildPythonPackage rec {
    setuptools
    cython
  ];
  dependencies = [
    # https://github.com/grantjenks/py-tree-sitter-languages/issues/67
    tree-sitter0_21
  ];
  dependencies = [ tree-sitter ];
  # Generate languages.so file (build won't fail without this, but tests will).
  preBuild = ''
    ${python.pythonOnBuildForHost.interpreter} build.py
@@ -61,5 +58,7 @@ buildPythonPackage rec {
    homepage = "https://github.com/grantjenks/py-tree-sitter-languages";
    license = licenses.asl20;
    maintainers = with maintainers; [ doronbehar ];
    # https://github.com/grantjenks/py-tree-sitter-languages/issues/67
    broken = versionAtLeast tree-sitter.version "0.22";
  };
}