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