My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/ansi2html/default.nix

29 lines
793 B

{ lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, pytestCheckHook, setuptools, setuptools-scm }:
buildPythonPackage rec {
pname = "ansi2html";
version = "1.7.0";
format = "pyproject";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-aTFr6MaKyRxVgtOXwokOacmTzHzaUgYqx+Rfy2YNjtw=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ six setuptools ];
preCheck = "export PATH=$PATH:$out/bin";
checkInputs = [ mock pytestCheckHook ];
pythonImportsCheck = [ "ansi2html" ];
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 ];
};
}