2021-08-27 01:25:52 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, pytestCheckHook, setuptools, setuptools-scm }:
|
2019-10-05 12:59:58 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansi2html";
|
2022-07-16 11:58:56 +01:00
|
|
|
version = "1.8.0";
|
2022-03-02 21:41:49 +00:00
|
|
|
format = "pyproject";
|
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;
|
2022-07-16 11:58:56 +01:00
|
|
|
sha256 = "sha256-OLgqKYSCofomE/D5yb6z23Ko+DLurFjrLke/Ms039tU=";
|
2019-10-05 12:59:58 +01:00
|
|
|
};
|
|
|
|
|
2021-08-27 01:25:52 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|