python310Packages.rich-click: init at 1.5.2
This commit is contained in:
parent
634ccbcbc7
commit
2ba8420c40
53
pkgs/development/python-modules/rich-click/default.nix
Normal file
53
pkgs/development/python-modules/rich-click/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, rich
|
||||
, typer
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rich-click";
|
||||
version = "1.5.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ewels";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-eW5CR7ReVsFLJ09F4EUQbvFB+GdlnTay0bX4NNLQ0xo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
rich
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
typer = [
|
||||
typer
|
||||
];
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "typer>=0.4,<0.6" "typer>=0.4"
|
||||
'';
|
||||
|
||||
# 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";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -9611,6 +9611,8 @@ in {
|
||||
|
||||
rich = callPackage ../development/python-modules/rich { };
|
||||
|
||||
rich-click = callPackage ../development/python-modules/rich-click { };
|
||||
|
||||
rich-rst = callPackage ../development/python-modules/rich-rst { };
|
||||
|
||||
rig = callPackage ../development/python-modules/rig { };
|
||||
|
Loading…
Reference in New Issue
Block a user