ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / ansi2html / default.nix
blob6489832c43a9c0df519d8f40d36cf5ba10dff5b4
1 { lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, pytestCheckHook, setuptools, setuptools-scm }:
3 buildPythonPackage rec {
4   pname = "ansi2html";
5   version = "1.8.0";
6   format = "pyproject";
8   disabled = !isPy3k;
10   src = fetchPypi {
11     inherit pname version;
12     sha256 = "sha256-OLgqKYSCofomE/D5yb6z23Ko+DLurFjrLke/Ms039tU=";
13   };
15   nativeBuildInputs = [ setuptools-scm ];
16   propagatedBuildInputs = [ six setuptools ];
18   preCheck = "export PATH=$PATH:$out/bin";
19   checkInputs = [ mock pytestCheckHook ];
21   pythonImportsCheck = [ "ansi2html" ];
23   meta = with lib; {
24     description = "Convert text with ANSI color codes to HTML";
25     homepage = "https://github.com/ralphbean/ansi2html";
26     license = licenses.lgpl3Plus;
27     maintainers = with maintainers; [ davidtwco ];
28   };