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