ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
31 lines
903 B
Nix
31 lines
903 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pillow }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aafigure";
|
|
version = "0.6";
|
|
|
|
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 = with stdenv.lib; {
|
|
description = "ASCII art to image converter";
|
|
homepage = https://launchpad.net/aafigure/;
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|