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