blob: d0ebe9408c30d6c3a45f270cf9245a67187d2501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# dependencies
rich,
# tests
pillow,
pytestCheckHook,
syrupy,
setuptools,
}:
buildPythonPackage rec {
pname = "textual-image";
version = "0.8.5";
pyproject = true;
src = fetchFromGitHub {
owner = "lnqs";
repo = "textual-image";
tag = "v${version}";
hash = "sha256-gkLsM02oQ2H4UUhezbcmaOa2FQfzvFRsa0gd07eNucw=";
};
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 ];
};
}
|