Unverified Commit 5fd3d5ab authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.rich-argparse: refactor

parent ae7ffcf7
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -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;