1{ lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, pytestCheckHook, setuptools, setuptools-scm }:
2
3buildPythonPackage rec {
4 pname = "ansi2html";
5 version = "1.6.0";
6
7 disabled = !isPy3k;
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "0f124ea7efcf3f24f1f9398e527e688c9ae6eab26b0b84e1299ef7f94d92c596";
12 };
13
14 nativeBuildInputs = [ setuptools-scm ];
15 propagatedBuildInputs = [ six setuptools ];
16
17 preCheck = "export PATH=$PATH:$out/bin";
18 checkInputs = [ mock pytestCheckHook ];
19
20 pythonImportsCheck = [ "ansi2html" ];
21
22 meta = with lib; {
23 description = "Convert text with ANSI color codes to HTML";
24 homepage = "https://github.com/ralphbean/ansi2html";
25 license = licenses.lgpl3Plus;
26 maintainers = with maintainers; [ davidtwco ];
27 };
28}