nixpkgs/pkgs/misc/rich-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.5 KiB
Nix
Raw Normal View History

2022-05-04 14:23:18 +00:00
{ lib
2022-05-08 03:19:30 +00:00
, fetchFromGitHub
, fetchpatch
2022-05-04 14:23:18 +00:00
, python3
}:
2022-03-01 06:48:55 +00:00
2023-04-11 12:19:56 +00:00
python3.pkgs.buildPythonApplication rec {
2022-03-01 06:48:55 +00:00
pname = "rich-cli";
2022-05-08 03:19:30 +00:00
version = "1.8.0";
pyproject = true;
2022-03-01 06:48:55 +00:00
2022-05-08 03:19:30 +00:00
src = fetchFromGitHub {
owner = "Textualize";
repo = "rich-cli";
2023-04-11 12:19:56 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-mV5b/J9wX9niiYtlmAUouaAm9mY2zTtDmex7FNWcezQ=";
2022-03-01 06:48:55 +00:00
};
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 = [
"textual"
];
2023-04-11 12:19:56 +00:00
build-system = with python3.pkgs; [
2022-05-04 14:23:18 +00:00
poetry-core
];
2022-03-01 06:48:55 +00:00
nativeBuildInputs = with python3.pkgs; [
];
dependencies = with python3.pkgs; [
2022-03-01 06:48:55 +00:00
click
requests
rich
2022-03-01 06:48:55 +00:00
rich-rst
textual
2022-03-01 06:48:55 +00:00
];
2022-05-04 14:23:18 +00:00
pythonImportsCheck = [
"rich_cli"
];
2022-03-01 06:48:55 +00:00
meta = with lib; {
description = "Command Line Interface to Rich";
2022-05-04 14:23:18 +00:00
homepage = "https://github.com/Textualize/rich-cli";
2023-04-11 12:19:56 +00:00
changelog = "https://github.com/Textualize/rich-cli/releases/tag/v${version}";
2022-03-01 06:48:55 +00:00
license = licenses.mit;
2023-01-15 04:14:19 +00:00
maintainers = with maintainers; [ joelkoen ];
2023-11-23 21:09:35 +00:00
mainProgram = "rich";
2022-03-01 06:48:55 +00:00
};
}