python312Packages.tree-sitter-language-pack: cleanup

This commit is contained in:
Gaetan Lepage
2025-04-02 00:11:06 +02:00
parent e2ca590576
commit 13778a2330
2 changed files with 16 additions and 10 deletions
@@ -1,26 +1,28 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
# build-system
cython,
setuptools,
typing-extensions,
# dependencies
tree-sitter,
tree-sitter-c-sharp,
tree-sitter-embedded-template,
tree-sitter-yaml,
}:
let
version = "0.6.1";
in
buildPythonPackage {
buildPythonPackage rec {
pname = "tree-sitter-language-pack";
inherit version;
version = "0.6.1";
pyproject = true;
disabled = pythonOlder "3.9";
# Using the GitHub sources necessitates fetching the treesitter grammar parsers by using a vendored script:
# https://github.com/Goldziher/tree-sitter-language-pack/blob/main/scripts/clone_vendors.py
# The pypi archive has the benefit of already vendoring those dependencies which makes packaging easier on our side
src = fetchPypi {
pname = "tree_sitter_language_pack";
inherit version;
@@ -45,9 +47,13 @@ buildPythonPackage {
"tree_sitter_language_pack.bindings"
];
# No tests in the pypi archive
doCheck = false;
meta = {
description = "Comprehensive collection of tree-sitter languages";
homepage = "https://github.com/Goldziher/tree-sitter-language-pack/";
homepage = "https://github.com/Goldziher/tree-sitter-language-pack";
changelog = "https://github.com/Goldziher/tree-sitter-language-pack/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yzx9 ];
};
+2 -2
View File
@@ -17402,10 +17402,10 @@ self: super: with self; {
tree-sitter-json = callPackage ../development/python-modules/tree-sitter-json { };
tree-sitter-languages = callPackage ../development/python-modules/tree-sitter-languages { };
tree-sitter-language-pack = callPackage ../development/python-modules/tree-sitter-language-pack { };
tree-sitter-languages = callPackage ../development/python-modules/tree-sitter-languages { };
tree-sitter-make = callPackage ../development/python-modules/tree-sitter-make { };
tree-sitter-python = callPackage ../development/python-modules/tree-sitter-python { };