blob: 2f3373b1c50ac583edcea7331d54db92eaed9a6d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
colorama,
fetchFromGitHub,
pillow,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "ansi2image";
version = "0.1.4";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "helviojunior";
repo = "ansi2image";
rev = "refs/tags/v${version}";
hash = "sha256-1sPEEWcOzesLQXSeMsUra8ZRSMAKzH6iisOgdhpxhKM=";
};
propagatedBuildInputs = [
colorama
pillow
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ansi2image" ];
pytestFlagsArray = [ "tests/tests.py" ];
meta = with lib; {
description = "Module to convert ANSI text to an image";
mainProgram = "ansi2image";
homepage = "https://github.com/helviojunior/ansi2image";
changelog = "https://github.com/helviojunior/ansi2image/blob/${version}/CHANGELOG";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}
|