1{ 2 lib, 3 buildPythonPackage, 4 colorama, 5 fetchFromGitHub, 6 pillow, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "ansi2image"; 13 version = "0.1.4"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "helviojunior"; 20 repo = "ansi2image"; 21 tag = "v${version}"; 22 hash = "sha256-1sPEEWcOzesLQXSeMsUra8ZRSMAKzH6iisOgdhpxhKM="; 23 }; 24 25 propagatedBuildInputs = [ 26 colorama 27 pillow 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "ansi2image" ]; 33 34 enabledTestPaths = [ "tests/tests.py" ]; 35 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 }; 44}