nixpkgs/pkgs/development/python-modules/markitdown
Bad3r aff8c2ae29
python3Packages.markitdown: fix passthru.updateScript
gitUpdater {} never selected a version: list-git-tags returns v-prefixed
tags (v0.1.6, matching src.tag = "v${version}"), and generic-updater's
`grep "^[0-9]"` filter drops every tag that does not start with a digit,
so the script always printed [] and made no change.

Set rev-prefix = "v" so versions are compared as 0.1.6, and add
ignoredVersions = "(a|b|rc)[0-9]+$" to skip the PEP 440 pre-release tags
(v0.1.5b1, v0.1.0a1, ...) that version_is_unstable's odd-minor and
patchlevel>=90 heuristics do not recognise.

Validation:
- nix-shell maintainers/scripts/update.nix --argstr package
  python3Packages.markitdown --argstr skip-prompt true
  (0.1.4 -> 0.1.6 selected, pre-releases skipped, correct hash resolved).
- nix fmt -- pkgs/development/python-modules/markitdown/default.nix
- git diff --check
2026-05-29 21:58:55 +03:00
..
default.nix python3Packages.markitdown: fix passthru.updateScript 2026-05-29 21:58:55 +03:00