python3Packages.rich-toolkit: 0.17.1 -> 0.20.1 (#533361)

This commit is contained in:
dotlambda 2026-06-21 22:08:00 +00:00 committed by GitHub
commit 92bd8a9b6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,18 +17,23 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "rich-toolkit";
version = "0.17.1";
version = "0.20.1";
pyproject = true;
src = fetchFromGitHub {
owner = "patrick91";
repo = "rich-toolkit";
tag = version;
hash = "sha256-69x760lnMdwrNFUL1g9PBlTRGz34Ur2CHWbJq7PqBmk=";
tag = finalAttrs.version;
hash = "sha256-XYSksCMCCxO6wzsEEJ6X340iT32hU5n/EikKLZ2m7A0=";
};
postPatch = ''
# the commit updating the version happens only after tagging
sed -i 's/version = ".*"/version = "${finalAttrs.version}"/' pyproject.toml
'';
build-system = [ hatchling ];
dependencies = [
@ -46,10 +51,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "rich_toolkit" ];
meta = {
changelog = "https://github.com/patrick91/rich-toolkit/releases/tag/${src.tag}";
changelog = "https://github.com/patrick91/rich-toolkit/blob/${finalAttrs.src.tag}/CHANGELOG.md";
description = "Rich toolkit for building command-line applications";
homepage = "https://github.com/patrick91/rich-toolkit/";
license = lib.licenses.mit;
maintainers = [ ];
};
}
})