1{ lib
2, fetchPypi
3, buildPythonPackage
4, click
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "click-help-colors";
11 version = "0.9.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-dWJF5ULSkia7O8BWv6WIhvISuiuC9OjPX8iEF2rJbXI=";
19 };
20
21 propagatedBuildInputs = [
22 click
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [
30 "click_help_colors"
31 ];
32
33 meta = with lib; {
34 description = "Colorization of help messages in Click";
35 homepage = "https://github.com/click-contrib/click-help-colors";
36 changelog = "https://github.com/click-contrib/click-help-colors/blob/${version}/CHANGES.rst";
37 license = licenses.mit;
38 maintainers = with maintainers; [ freezeboy ];
39 };
40}