From cb3e1ee48162dc50032b6a66b5634aa72626336d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Mon, 8 Sep 2025 06:37:04 +0200 Subject: [PATCH] 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. --- .../python-modules/tree-sitter-markdown/default.nix | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkgs/development/python-modules/tree-sitter-markdown/default.nix b/pkgs/development/python-modules/tree-sitter-markdown/default.nix index 554324248f4b..2fcc34269bb8 100644 --- a/pkgs/development/python-modules/tree-sitter-markdown/default.nix +++ b/pkgs/development/python-modules/tree-sitter-markdown/default.nix @@ -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";