linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / aafigure / default.nix
blob0b9f14571781f64f1a96921e166ecced12cd09cf
1 { lib, buildPythonPackage, fetchPypi, pillow }:
3 buildPythonPackage rec {
4   pname = "aafigure";
5   version = "0.6";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "49f2c1fd2b579c1fffbac1386a2670b3f6f475cc7ff6cc04d8b984888c2d9e1e";
10   };
12   propagatedBuildInputs = [ pillow ];
14   # error: invalid command 'test'
15   doCheck = false;
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   '';
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   };