1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "ansicolor";
12 version = "0.3.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "numerodix";
19 repo = "ansicolor";
20 tag = version;
21 hash = "sha256-a/BAU42AfMR8C94GwmrLkvSvolFEjV0LbDypvS9UuOA=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "ansicolor" ];
29
30 meta = with lib; {
31 description = "Library to produce ansi color output and colored highlighting and diffing";
32 homepage = "https://github.com/numerodix/ansicolor/";
33 license = licenses.asl20;
34 maintainers = [ ];
35 };
36}