2021-09-18 10:52:07 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, pytestCheckHook, setuptools, setuptools-scm }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansi2html";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.8.0";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-OLgqKYSCofomE/D5yb6z23Ko+DLurFjrLke/Ms039tU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ six setuptools ];
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
preCheck = "export PATH=$PATH:$out/bin";
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ mock pytestCheckHook ];
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "ansi2html" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|