python3Packages.tree-sitter-markdown: remove update script override

Fixes creating PRs like https://github.com/NixOS/nixpkgs/pull/441010.

This was added in https://github.com/NixOS/nixpkgs/pull/425177 with the
idea of freezing updates and manually bumping the version in the update script,
but turns out python updates don't care about custom update scripts
and that was ignored.

Until there's another issue with this package being ahead of PyPi
releases (eg. with textual), we can use the latest GitHub release for simplicity. The best
would be fetching this from PyPi instead.
This commit is contained in:
Gutyina Gergő
2025-09-08 06:52:28 +02:00
parent b63a009065
commit cb3e1ee481
@@ -5,12 +5,10 @@
setuptools,
tree-sitter,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage rec {
pname = "tree-sitter-markdown";
# only update to the latest version on PyPI
version = "0.5.0";
pyproject = true;
@@ -38,15 +36,6 @@ buildPythonPackage rec {
tree-sitter
];
passthru.updateScript = nix-update-script {
extraArgs = [
# later versions have incompatible changes, pin it to the latest on PyPI
# reverse-dependencies also pull packages from PyPI, see:
# https://github.com/Textualize/textual/issues/5868
"--version=0.3.2"
];
};
meta = {
description = "Markdown grammar for tree-sitter";
homepage = "https://github.com/tree-sitter-grammars/tree-sitter-markdown";