83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
40 lines
789 B
Nix
40 lines
789 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
setuptools-scm,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ansi2html";
|
|
version = "1.9.2";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NFO/h1NdN7gnsFJF+qp1bbq07D1pkl41K2MZw8lVwKU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
preCheck = "export PATH=$PATH:$out/bin";
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "ansi2html" ];
|
|
|
|
meta = with lib; {
|
|
description = "Convert text with ANSI color codes to HTML";
|
|
mainProgram = "ansi2html";
|
|
homepage = "https://github.com/ralphbean/ansi2html";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ davidtwco ];
|
|
};
|
|
}
|