Merge pull request #51513 from gnidorah/python-fontconfig

pythonPackages.python-fontconfig: regenerate sources using cython
This commit is contained in:
Jörg Thalheim 2018-12-05 11:23:26 +00:00 committed by GitHub
commit 4e45eab9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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