nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 901 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 colorama, 5 fetchFromGitHub, 6 pillow, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "ansi2image"; 12 version = "0.1.4"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "helviojunior"; 17 repo = "ansi2image"; 18 tag = "v${version}"; 19 hash = "sha256-1sPEEWcOzesLQXSeMsUra8ZRSMAKzH6iisOgdhpxhKM="; 20 }; 21 22 propagatedBuildInputs = [ 23 colorama 24 pillow 25 ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ "ansi2image" ]; 30 31 enabledTestPaths = [ "tests/tests.py" ]; 32 33 meta = { 34 description = "Module to convert ANSI text to an image"; 35 mainProgram = "ansi2image"; 36 homepage = "https://github.com/helviojunior/ansi2image"; 37 changelog = "https://github.com/helviojunior/ansi2image/blob/${version}/CHANGELOG"; 38 license = lib.licenses.gpl3Only; 39 maintainers = with lib.maintainers; [ fab ]; 40 }; 41}