Files
nixpkgs/pkgs/development/python-modules/aafigure/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
960 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pillow,
}:
buildPythonPackage rec {
pname = "aafigure";
version = "0.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "49f2c1fd2b579c1fffbac1386a2670b3f6f475cc7ff6cc04d8b984888c2d9e1e";
};
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 = {
description = "ASCII art to image converter";
mainProgram = "aafigure";
homepage = "https://launchpad.net/aafigure/";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ bjornfor ];
platforms = lib.platforms.unix;
};
}