diff --git a/pkgs/development/python-modules/colorful/default.nix b/pkgs/development/python-modules/colorful/default.nix index cf890a3b95b4..d8be8caeab4b 100644 --- a/pkgs/development/python-modules/colorful/default.nix +++ b/pkgs/development/python-modules/colorful/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + gitUpdater, pytestCheckHook, }: @@ -21,6 +22,13 @@ buildPythonPackage rec { pythonImportsCheck = [ "colorful" ]; + passthru.updateScript = gitUpdater { + # Drop the "v" tag prefix before version comparison. + rev-prefix = "v"; + # Skip PEP 440 pre-release tags. + ignoredVersions = "(a|b|rc)[0-9]+$"; + }; + meta = { description = "Library for terminal string styling"; homepage = "https://github.com/timofurrer/colorful";