2021-06-03 11:09:11 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, pytestCheckHook, setuptools, setuptools-scm, toml }:
|
2019-10-05 12:59:58 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansi2html";
|
2020-11-29 14:04:22 +00:00
|
|
|
version = "1.6.0";
|
2019-10-05 12:59:58 +01:00
|
|
|
|
2020-12-17 04:20:00 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-10-05 12:59:58 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:22 +00:00
|
|
|
sha256 = "0f124ea7efcf3f24f1f9398e527e688c9ae6eab26b0b84e1299ef7f94d92c596";
|
2019-10-05 12:59:58 +01:00
|
|
|
};
|
|
|
|
|
2021-06-03 11:09:11 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm toml ];
|
2019-10-05 12:59:58 +01:00
|
|
|
propagatedBuildInputs = [ six setuptools ];
|
|
|
|
|
2020-11-29 17:50:38 +00:00
|
|
|
preCheck = "export PATH=$PATH:$out/bin";
|
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ansi2html" ];
|
2019-10-05 12:59:58 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert text with ANSI color codes to HTML";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ralphbean/ansi2html";
|
2019-10-05 12:59:58 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ davidtwco ];
|
|
|
|
};
|
|
|
|
}
|