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