python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / ansi2image / default.nix
blob2f3373b1c50ac583edcea7331d54db92eaed9a6d
2   lib,
3   buildPythonPackage,
4   colorama,
5   fetchFromGitHub,
6   pillow,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "ansi2image";
13   version = "0.1.4";
14   format = "setuptools";
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "helviojunior";
20     repo = "ansi2image";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-1sPEEWcOzesLQXSeMsUra8ZRSMAKzH6iisOgdhpxhKM=";
23   };
25   propagatedBuildInputs = [
26     colorama
27     pillow
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "ansi2image" ];
34   pytestFlagsArray = [ "tests/tests.py" ];
36   meta = with lib; {
37     description = "Module to convert ANSI text to an image";
38     mainProgram = "ansi2image";
39     homepage = "https://github.com/helviojunior/ansi2image";
40     changelog = "https://github.com/helviojunior/ansi2image/blob/${version}/CHANGELOG";
41     license = licenses.gpl3Only;
42     maintainers = with maintainers; [ fab ];
43   };