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