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