Commit 2e6c0a7f authored by Doron Behar's avatar Doron Behar
Browse files

python312Packages.tree-sitter-make: init at 1.1.1

parent affab2b1
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  cargo,
  rustPlatform,
  rustc,
  setuptools,
}:

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

  src = fetchFromGitHub {
    owner = "tree-sitter-grammars";
    repo = "tree-sitter-make";
    rev = "v${version}";
    hash = "sha256-WiuhAp9JZKLd0wKCui9MV7AYFOW9dCbUp+kkVl1OEz0=";
  };

  cargoDeps = rustPlatform.fetchCargoTarball {
    inherit src;
    name = "${pname}-${version}";
    hash = "sha256-RI/wBnapWdr4kYshx9d9iN9nB30bR91uQ063yqNy4aA=";
  };

  build-system = [
    cargo
    rustPlatform.cargoSetupHook
    rustc
    setuptools
  ];

  # There are no tests
  doCheck = false;
  pythonImportsCheck = [
    "tree_sitter_make"
  ];

  meta = {
    description = "Makefile grammar for tree-sitter";
    homepage = "https://github.com/tree-sitter-grammars/tree-sitter-make";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ doronbehar ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -16398,6 +16398,8 @@ self: super: with self; {
  tree-sitter-json = callPackage ../development/python-modules/tree-sitter-json { };
  tree-sitter-make = callPackage ../development/python-modules/tree-sitter-make { };
  tree-sitter-languages = callPackage ../development/python-modules/tree-sitter-languages { };
  treelib = callPackage ../development/python-modules/treelib { };