1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pillow,
7 rich,
8 pytestCheckHook,
9 pythonOlder,
10 syrupy,
11}:
12
13buildPythonPackage rec {
14 pname = "rich-pixels";
15 version = "3.0.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "darrenburns";
22 repo = "rich-pixels";
23 tag = version;
24 hash = "sha256-Sqs0DOyxJBfZmm/SVSTMSmaaeRlusiSp6VBnJjKYjgQ=";
25 };
26
27 pythonRelaxDeps = [ "pillow" ];
28
29 build-system = [ hatchling ];
30
31 dependencies = [
32 pillow
33 rich
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 syrupy
39 ];
40
41 pythonImportsCheck = [ "rich_pixels" ];
42
43 meta = with lib; {
44 description = "Rich-compatible library for writing pixel images and ASCII art to the terminal";
45 homepage = "https://github.com/darrenburns/rich-pixels";
46 changelog = "https://github.com/darrenburns/rich-pixels/releases/tag/${version}";
47 license = licenses.mit;
48 maintainers = with maintainers; [ figsoda ];
49 };
50}