blob: 4b6f8b4874c86809d53216431efadf118707140b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 ];
};
}
|