Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 40 lines 888 B view raw
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.6.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "hamdanal"; 20 repo = "rich-argparse"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-ae++npgZ8jZazwARwlPw73uhpQ8IT+7OekNl2vfu4Z0="; 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/v${version}/CHANGELOG.md"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ graham33 ]; 39 }; 40}