1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # dependencies 7 rich, 8 9 # tests 10 pillow, 11 pytestCheckHook, 12 syrupy, 13 14 setuptools, 15}: 16 17buildPythonPackage rec { 18 pname = "textual-image"; 19 version = "0.8.4"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "lnqs"; 24 repo = "textual-image"; 25 tag = "v${version}"; 26 hash = "sha256-tmQxCSlcUZy0oEk+EX7Bny75GZ3SOGSRXCNbyo1vLf8="; 27 }; 28 29 buildInputs = [ setuptools ]; 30 31 dependencies = [ 32 pillow 33 rich 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 syrupy 39 ]; 40 41 pythonImportsCheck = [ "textual_image" ]; 42 43 doCheck = true; 44 45 meta = { 46 description = "Render images in the terminal with Textual and rich"; 47 homepage = "https://github.com/lnqs/textual-image/"; 48 changelog = "https://github.com/lnqs/textual-image/blob/${src.tag}/CHANGELOG.md"; 49 license = lib.licenses.lgpl3; 50 maintainers = with lib.maintainers; [ gaelj ]; 51 }; 52}