From b99e339419d92de701cac0e026a6309eccc5674c Mon Sep 17 00:00:00 2001 From: "Alexander V. Nikolaev" Date: Sat, 6 Feb 2016 04:16:48 +0200 Subject: [PATCH] cairocffi: need some fonts at build time --- pkgs/top-level/python-packages.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 169a2e17514a..5c00687ce89e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2609,6 +2609,13 @@ in modules // { }; LC_ALL = "en_US.UTF-8"; + + # checkPhase require at least one 'normal' font and one 'monospace', + # otherwise glyph tests fails + FONTCONFIG_FILE = pkgs.makeFontsConf { + fontDirectories = [ pkgs.freefont_ttf ]; + }; + buildInputs = with self; [ pytest pkgs.glibcLocales ]; propagatedBuildInputs = with self; [ pkgs.cairo cffi ];