Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ansi2html / default.nix
blob5f87f8ff3e51c51ee613cf55012996c799477608
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , setuptools
6 , setuptools-scm
7 , wheel
8 }:
10 buildPythonPackage rec {
11   pname = "ansi2html";
12   version = "1.9.1";
13   format = "pyproject";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-XGg3oT7MGQOqt6VFNTMSBJ3+3+UQU2KtOo2dIHhx7HE=";
18   };
20   nativeBuildInputs = [
21     setuptools
22     setuptools-scm
23     wheel
24   ];
26   preCheck = "export PATH=$PATH:$out/bin";
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [ "ansi2html" ];
34   meta = with lib; {
35     description = "Convert text with ANSI color codes to HTML";
36     mainProgram = "ansi2html";
37     homepage = "https://github.com/ralphbean/ansi2html";
38     license = licenses.lgpl3Plus;
39     maintainers = with maintainers; [ davidtwco ];
40   };