2025-06-04 15:55:40 +00:00

41 lines
877 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
pythonOlder,
rich,
}:
buildPythonPackage rec {
pname = "rich-argparse";
version = "1.7.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "hamdanal";
repo = "rich-argparse";
tag = "v${version}";
hash = "sha256-gLXFiWgGMDOUbTyoSgTr0XfotVfDxwMqPdsfE4KHzXM=";
};
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/${src.tag}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ graham33 ];
};
}