2017-07-15 06:43:13 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pillow }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aafigure";
|
2017-08-24 18:34:20 +01:00
|
|
|
version = "0.6";
|
2017-07-15 06:43:13 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-08-24 18:34:20 +01:00
|
|
|
sha256 = "49f2c1fd2b579c1fffbac1386a2670b3f6f475cc7ff6cc04d8b984888c2d9e1e";
|
2017-07-15 06:43:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pillow ];
|
|
|
|
|
|
|
|
# error: invalid command 'test'
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# Fix impurity. TODO: Do the font lookup using fontconfig instead of this
|
|
|
|
# manual method. Until that is fixed, we get this whenever we run aafigure:
|
|
|
|
# WARNING: font not found, using PIL default font
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i "s|/usr/share/fonts|/nonexisting-fonts-path|" aafigure/PILhelper.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "ASCII art to image converter";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://launchpad.net/aafigure/";
|
2017-07-15 06:43:13 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2017-07-15 06:43:13 +01:00
|
|
|
};
|
|
|
|
}
|