Files
nixpkgs/pkgs/by-name/ri/rich-cli/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

74 lines
1.7 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
fetchpatch,
versionCheckHook,
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
pname = "rich-cli";
version = "1.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Textualize";
repo = "rich-cli";
tag = "v${version}";
hash = "sha256-mV5b/J9wX9niiYtlmAUouaAm9mY2zTtDmex7FNWcezQ=";
};
patches = [
# Update dependencies, https://github.com/Textualize/rich-cli/pull/94
(fetchpatch {
name = "update-dependencies.patch";
url = "https://github.com/Textualize/rich-cli/pull/94/commits/1e9a11af7c1c78a5a44a207b1e0dce4c4b3c39f0.patch";
hash = "sha256-cU+s/LK2GDVWXLZob0n5J6sLjflCr8w10hRLgeWN5Vg=";
})
(fetchpatch {
name = "markdown.patch";
url = "https://github.com/Textualize/rich-cli/pull/94/commits/0a8e77d724ace88ce88ee9d68a46b1dc8464fe0b.patch";
hash = "sha256-KXvRG36Qj5kCj1RiAJsNkoJY7t41zUfJFgHeCtc0O4w=";
})
];
pythonRelaxDeps = [
"rich"
"textual"
];
build-system = with python3Packages; [
poetry-core
];
dependencies = with python3Packages; [
click
requests
rich
rich-rst
textual
];
pythonImportsCheck = [ "rich_cli" ];
nativeCheckInputs = [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/rich";
versionCheckProgramArg = "--version";
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Command Line Interface to Rich";
homepage = "https://github.com/Textualize/rich-cli";
changelog = "https://github.com/Textualize/rich-cli/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "rich";
};
}