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