Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pillow, 6}: 7 8buildPythonPackage rec { 9 pname = "aafigure"; 10 version = "0.6"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "49f2c1fd2b579c1fffbac1386a2670b3f6f475cc7ff6cc04d8b984888c2d9e1e"; 16 }; 17 18 propagatedBuildInputs = [ pillow ]; 19 20 # error: invalid command 'test' 21 doCheck = false; 22 23 # Fix impurity. TODO: Do the font lookup using fontconfig instead of this 24 # manual method. Until that is fixed, we get this whenever we run aafigure: 25 # WARNING: font not found, using PIL default font 26 patchPhase = '' 27 sed -i "s|/usr/share/fonts|/nonexisting-fonts-path|" aafigure/PILhelper.py 28 ''; 29 30 meta = with lib; { 31 description = "ASCII art to image converter"; 32 mainProgram = "aafigure"; 33 homepage = "https://launchpad.net/aafigure/"; 34 license = licenses.bsd2; 35 maintainers = with maintainers; [ bjornfor ]; 36 platforms = platforms.unix; 37 }; 38}