Merge pull request #51513 from gnidorah/python-fontconfig
pythonPackages.python-fontconfig: regenerate sources using cython
This commit is contained in:
commit
4e45eab9f7
@ -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};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user