1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pillow, 6 python, 7}: 8 9buildPythonPackage rec { 10 pname = "fabulous"; 11 version = "0.4.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "jart"; 16 repo = pname; 17 rev = version; 18 hash = "sha256-hchlxuB5QP+VxCx+QZ2739/mR5SQmYyE+9kXLKJ2ij4="; 19 }; 20 21 patches = [ ./relative_import.patch ]; 22 23 propagatedBuildInputs = [ pillow ]; 24 25 checkPhase = '' 26 for i in tests/*.py; do 27 ${python.interpreter} $i 28 done 29 ''; 30 31 meta = with lib; { 32 description = "Make the output of terminal applications look fabulous"; 33 homepage = "https://jart.github.io/fabulous"; 34 license = licenses.asl20; 35 maintainers = [ maintainers.symphorien ]; 36 }; 37}