1{ lib
2, buildPythonPackage
3, click
4, fetchFromGitHub
5, pythonOlder
6, rich
7, typer
8, typing-extensions
9}:
10
11buildPythonPackage rec {
12 pname = "rich-click";
13 version = "1.7.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "ewels";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-rWVJEuJx5nDUg6RvhubHu9U2Glilrkugjg28SpFIZys=";
23 };
24
25 propagatedBuildInputs = [
26 click
27 rich
28 typing-extensions
29 ];
30
31 # Module has no test
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "rich_click"
36 ];
37
38 meta = with lib; {
39 description = "Module to format click help output nicely with rich";
40 homepage = "https://github.com/ewels/rich-click";
41 changelog = "https://github.com/ewels/rich-click/blob/v${version}/CHANGELOG.md";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}