ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / by-name / ri / rich-cli / package.nix
blob6b5d19757189b34454f70b29e0522376a78f5c69
2   lib,
3   fetchFromGitHub,
4   fetchpatch,
5   python3,
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "rich-cli";
10   version = "1.8.0";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "Textualize";
15     repo = "rich-cli";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-mV5b/J9wX9niiYtlmAUouaAm9mY2zTtDmex7FNWcezQ=";
18   };
20   patches = [
21     # Update dependencies, https://github.com/Textualize/rich-cli/pull/94
22     (fetchpatch {
23       name = "update-dependencies.patch";
24       url = "https://github.com/Textualize/rich-cli/pull/94/commits/1e9a11af7c1c78a5a44a207b1e0dce4c4b3c39f0.patch";
25       hash = "sha256-cU+s/LK2GDVWXLZob0n5J6sLjflCr8w10hRLgeWN5Vg=";
26     })
27     (fetchpatch {
28       name = "markdown.patch";
29       url = "https://github.com/Textualize/rich-cli/pull/94/commits/0a8e77d724ace88ce88ee9d68a46b1dc8464fe0b.patch";
30       hash = "sha256-KXvRG36Qj5kCj1RiAJsNkoJY7t41zUfJFgHeCtc0O4w=";
31     })
32   ];
34   pythonRelaxDeps = [
35     "textual"
36   ];
38   build-system = with python3.pkgs; [
39     poetry-core
40   ];
42   nativeBuildInputs = with python3.pkgs; [
43   ];
45   dependencies = with python3.pkgs; [
46     click
47     requests
48     rich
49     rich-rst
50     textual
51   ];
53   pythonImportsCheck = [
54     "rich_cli"
55   ];
57   meta = with lib; {
58     description = "Command Line Interface to Rich";
59     homepage = "https://github.com/Textualize/rich-cli";
60     changelog = "https://github.com/Textualize/rich-cli/releases/tag/v${version}";
61     license = licenses.mit;
62     maintainers = [ ];
63     mainProgram = "rich";
64   };