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