2025-06-18 21:32:15 +00:00

53 lines
932 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# dependencies
rich,
# tests
pillow,
pytestCheckHook,
syrupy,
setuptools,
}:
buildPythonPackage rec {
pname = "textual-image";
version = "0.8.3";
pyproject = true;
src = fetchFromGitHub {
owner = "lnqs";
repo = "textual-image";
tag = "v${version}";
hash = "sha256-XbQs3E2Zl6Jdq0QVSdF6LexnmEmlZEm9BmWZK+dyBjo=";
};
buildInputs = [ setuptools ];
dependencies = [
pillow
rich
];
nativeCheckInputs = [
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "textual_image" ];
doCheck = true;
meta = {
description = "Render images in the terminal with Textual and rich";
homepage = "https://github.com/lnqs/textual-image/";
changelog = "https://github.com/lnqs/textual-image/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.lgpl3;
maintainers = with lib.maintainers; [ gaelj ];
};
}