1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 colorama,
8}:
9
10buildPythonPackage rec {
11 pname = "ansimarkup";
12 version = "2.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "gvalkov";
17 repo = "python-ansimarkup";
18 tag = "v${version}";
19 hash = "sha256-+kZt8tv09RHrMRZtvJPBBiFaeCksXyrlHqIabPrXYDY=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ colorama ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "ansimarkup" ];
29
30 meta = with lib; {
31 description = "XML-like markup for producing colored terminal text";
32 homepage = "https://github.com/gvalkov/python-ansimarkup";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ cpcloud ];
35 };
36}