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