b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
45 lines
886 B
Nix
45 lines
886 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, rich
|
|
, typer
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rich-click";
|
|
version = "1.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ewels";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Fmdxs7yeaHe8++LSQGuYK3Qwc0CdPvV9UCSXa09Djt4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
rich
|
|
typing-extensions
|
|
];
|
|
|
|
# Module has no test
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"rich_click"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module to format click help output nicely with rich";
|
|
homepage = "https://github.com/ewels/rich-click";
|
|
changelog = "https://github.com/ewels/rich-click/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|