mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
python.pkgs.aafigure: move to separate expression
This commit is contained in:
parent
eed3b4991b
commit
f6b103b51e
32
pkgs/development/python-modules/aafigure/default.nix
Normal file
32
pkgs/development/python-modules/aafigure/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pillow }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aafigure";
|
||||
version = "0.5";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "090c88beb091d28a233f854e239713aa15d8d1906ea16211855345c912e8a091";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -262,34 +262,7 @@ in {
|
||||
|
||||
# packages defined here
|
||||
|
||||
aafigure = buildPythonPackage rec {
|
||||
name = "aafigure-0.5";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/a/aafigure/${name}.tar.gz";
|
||||
sha256 = "090c88beb091d28a233f854e239713aa15d8d1906ea16211855345c912e8a091";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ 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";
|
||||
homepage = https://launchpad.net/aafigure/;
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ bjornfor ];
|
||||
};
|
||||
};
|
||||
aafigure = callPackage ../development/python-modules/aafigure { };
|
||||
|
||||
altair = buildPythonPackage rec {
|
||||
name = "altair-1.2.0";
|
||||
|
Loading…
Reference in New Issue
Block a user