blob: 440efc3cf27c0739f6cd766a7c96b77cce9ccec1 (
plain)
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
30
31
32
33
34
35
36
|
{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "ansi2html";
version = "1.9.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-rhfpLx1srA5n02fgf7C6iiPayPGT/F16jIpQ/l3dlaQ=";
};
build-system = [
setuptools-scm
];
preCheck = "export PATH=$PATH:$out/bin";
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ansi2html" ];
meta = {
description = "Convert text with ANSI color codes to HTML";
mainProgram = "ansi2html";
homepage = "https://github.com/ralphbean/ansi2html";
license = lib.licenses.lgpl3Plus;
maintainers = [ ];
};
}
|