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