1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, syrupy 7, pillow 8, rich 9, pythonRelaxDepsHook 10}: 11 12buildPythonPackage rec { 13 pname = "rich-pixels"; 14 version = "2.1.1"; 15 format = "pyproject"; 16 17 src = fetchFromGitHub { 18 owner = "darrenburns"; 19 repo = "rich-pixels"; 20 rev = version; 21 hash = "sha256-zI6jtEdmBAEGxyASo/6fiHdzwzoSwXN7A5x1CmYS5qc="; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 pythonRelaxDepsHook 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 checkInputs = [ 34 syrupy 35 ]; 36 37 propagatedBuildInputs = [ 38 pillow 39 rich 40 ]; 41 42 pythonRelaxDeps = [ 43 "pillow" 44 ]; 45 46 pythonImportsCheck = [ "rich_pixels" ]; 47 48 meta = with lib; { 49 description = "A Rich-compatible library for writing pixel images and ASCII art to the terminal"; 50 homepage = "https://github.com/darrenburns/rich-pixels"; 51 changelog = "https://github.com/darrenburns/rich-pixels/releases/tag/${src.rev}"; 52 # upstream has no license specified 53 # https://github.com/darrenburns/rich-pixels/issues/11 54 license = licenses.unfree; 55 maintainers = with maintainers; [ figsoda ]; 56 }; 57}