python313Packages.python-fontconfig: fix broken test (#403492)
This commit is contained in:
commit
eca33dd96c
@ -1,13 +1,20 @@
|
|||||||
{
|
{
|
||||||
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
cython,
|
|
||||||
fetchPypi,
|
fetchPypi,
|
||||||
|
|
||||||
|
# build-system
|
||||||
|
cython,
|
||||||
|
setuptools,
|
||||||
|
|
||||||
|
# dependencies
|
||||||
fontconfig,
|
fontconfig,
|
||||||
freefont_ttf,
|
freefont_ttf,
|
||||||
lib,
|
|
||||||
makeFontsConf,
|
makeFontsConf,
|
||||||
|
|
||||||
|
# testing
|
||||||
|
dejavu_fonts,
|
||||||
python,
|
python,
|
||||||
setuptools,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -35,6 +42,8 @@ buildPythonPackage rec {
|
|||||||
${python.pythonOnBuildForHost.interpreter} setup.py build_ext -i
|
${python.pythonOnBuildForHost.interpreter} setup.py build_ext -i
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeCheckInputs = [ dejavu_fonts ];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export FONTCONFIG_FILE=${fontsConf};
|
export FONTCONFIG_FILE=${fontsConf};
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
@ -50,6 +59,7 @@ buildPythonPackage rec {
|
|||||||
homepage = "https://github.com/Vayn/python-fontconfig";
|
homepage = "https://github.com/Vayn/python-fontconfig";
|
||||||
description = "Python binding for Fontconfig";
|
description = "Python binding for Fontconfig";
|
||||||
license = lib.licenses.gpl3;
|
license = lib.licenses.gpl3;
|
||||||
|
platforms = lib.platforms.all;
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user