pythonPackages.python-fontconfig: regenerate sources using cython

This commit is contained in:
gnidorah 2018-12-04 20:22:26 +03:00
parent 33b9aa4f35
commit 445f79af1c

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, fontconfig, python, freefont_ttf, makeFontsConf }:
{ lib, buildPythonPackage, fetchPypi, fontconfig, python, cython, freefont_ttf, makeFontsConf }:
let
fontsConf = makeFontsConf {
@ -14,6 +14,11 @@ in buildPythonPackage rec {
};
buildInputs = [ fontconfig ];
nativeBuildInputs = [ cython ];
preBuild = ''
${python.interpreter} setup.py build_ext -i
'';
checkPhase = ''
export FONTCONFIG_FILE=${fontsConf};