nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pillow, 7 pytestCheckHook, 8}: 9 10buildPythonPackage (finalAttrs: { 11 pname = "aafigure"; 12 version = "0.6"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit (finalAttrs) pname version; 17 hash = "sha256-SfLB/StXnB//usE4aiZws/b0dcx/9swE2LmEiIwtnh4="; 18 }; 19 20 build-system = [ setuptools ]; 21 22 propagatedBuildInputs = [ pillow ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 # Fix impurity. TODO: Do the font lookup using fontconfig instead of this 27 # manual method. Until that is fixed, we get this whenever we run aafigure: 28 # WARNING: font not found, using PIL default font 29 patchPhase = '' 30 sed -i "s|/usr/share/fonts|/nonexisting-fonts-path|" aafigure/PILhelper.py 31 ''; 32 33 meta = { 34 description = "ASCII art to image converter"; 35 mainProgram = "aafigure"; 36 homepage = "https://launchpad.net/aafigure/"; 37 license = lib.licenses.bsd2; 38 maintainers = with lib.maintainers; [ bjornfor ]; 39 platforms = lib.platforms.unix; 40 }; 41})