Files
nixpkgs/pkgs/development/python-modules/ansi2html/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
755 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 = {
description = "Convert text with ANSI color codes to HTML";
mainProgram = "ansi2html";
homepage = "https://github.com/ralphbean/ansi2html";
license = lib.licenses.lgpl3Plus;
maintainers = [ ];
};
}