python3Packages.python-fontconfig: 0.5.1 -> 0.6.0
This commit was automatically generated using update-python-libraries.
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
buildPythonPackage,
|
||||
cython,
|
||||
fetchPypi,
|
||||
fetchpatch,
|
||||
fontconfig,
|
||||
freefont_ttf,
|
||||
lib,
|
||||
makeFontsConf,
|
||||
python,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -15,34 +15,35 @@ let
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "python-fontconfig";
|
||||
version = "0.5.1";
|
||||
version = "0.6.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Python-fontconfig";
|
||||
pname = "python_fontconfig";
|
||||
inherit version;
|
||||
sha256 = "154rfd0ygcbj9y8m32n537b457yijpfx9dvmf76vi0rg4ikf7kxp";
|
||||
sha256 = "sha256-1esVZVMvkcAKWchaOrIki2CYoJDffN1PW+A9nXWjCeU=";
|
||||
};
|
||||
|
||||
buildInputs = [ fontconfig ];
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
patches = [
|
||||
# distutils has been removed since python 3.12
|
||||
# See https://github.com/vayn/python-fontconfig/pull/10
|
||||
(fetchpatch {
|
||||
name = "no-distutils.patch";
|
||||
url = "https://github.com/vayn/python-fontconfig/commit/15e1a72c90e93a665569e0ba771ae53c7c8020c8.patch";
|
||||
hash = "sha256-2mAemltWh3+LV4FDOg6uSD09zok3Eyd+v1WJJdouOV8=";
|
||||
})
|
||||
build-system = [
|
||||
cython
|
||||
setuptools
|
||||
];
|
||||
|
||||
buildInputs = [ fontconfig ];
|
||||
|
||||
preBuild = ''
|
||||
${python.pythonOnBuildForHost.interpreter} setup.py build_ext -i
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
preCheck = ''
|
||||
export FONTCONFIG_FILE=${fontsConf};
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
echo y | ${python.interpreter} test/test.py
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user