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