mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-14 17:23:57 +00:00
42 lines
901 B
Nix
42 lines
901 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
colorama,
|
|
fetchFromGitHub,
|
|
pillow,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ansi2image";
|
|
version = "0.1.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "helviojunior";
|
|
repo = "ansi2image";
|
|
tag = "v${version}";
|
|
hash = "sha256-GWrVo1WJux+ATvG5F9J4WMDlI0XAeTpQg7NrkN1P4Co=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
colorama
|
|
pillow
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "ansi2image" ];
|
|
|
|
enabledTestPaths = [ "tests/tests.py" ];
|
|
|
|
meta = {
|
|
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 = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|