1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 rich,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "rich-argparse";
12 version = "1.4.0";
13 format = "pyproject";
14
15 src = fetchFromGitHub {
16 owner = "hamdanal";
17 repo = "rich-argparse";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-iQ8x8UM0zmb2qYUpSh6RSEaBMrDpwY0ZHaJ9GJqn4Hs=";
20 };
21
22 propagatedBuildInputs = [
23 hatchling
24 rich
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "rich_argparse" ];
30
31 meta = with lib; {
32 description = "Format argparse help output using rich.";
33 homepage = "https://github.com/hamdanal/rich-argparse";
34 changelog = "https://github.com/hamdanal/rich-argparse/blob/v${version}/CHANGELOG.md";
35 license = licenses.mit;
36 maintainers = with maintainers; [ graham33 ];
37 };
38}