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