python312Packages.rich-argparse: refactor

This commit is contained in:
Fabian Affolter
2024-06-07 09:13:56 +02:00
committed by GitHub
parent ae7ffcf742
commit 5fd3d5abe1
@@ -3,14 +3,17 @@
buildPythonPackage,
fetchFromGitHub,
hatchling,
rich,
pytestCheckHook,
pythonOlder,
rich,
}:
buildPythonPackage rec {
pname = "rich-argparse";
version = "1.5.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "hamdanal";
@@ -19,17 +22,16 @@ buildPythonPackage rec {
hash = "sha256-NcsEGImUAqwZI6Ga3UIqnoELvz6WRKyVqGkR4jPIKPI=";
};
propagatedBuildInputs = [
hatchling
rich
];
build-system = [ hatchling ];
dependencies = [ rich ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "rich_argparse" ];
meta = with lib; {
description = "Format argparse help output using rich.";
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;