14 fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; };
16 buildPythonPackage rec {
17 pname = "python-fontconfig";
21 pname = "Python-fontconfig";
23 sha256 = "154rfd0ygcbj9y8m32n537b457yijpfx9dvmf76vi0rg4ikf7kxp";
26 buildInputs = [ fontconfig ];
27 nativeBuildInputs = [ cython ];
30 # distutils has been removed since python 3.12
31 # See https://github.com/vayn/python-fontconfig/pull/10
33 name = "no-distutils.patch";
34 url = "https://github.com/vayn/python-fontconfig/commit/15e1a72c90e93a665569e0ba771ae53c7c8020c8.patch";
35 hash = "sha256-2mAemltWh3+LV4FDOg6uSD09zok3Eyd+v1WJJdouOV8=";
40 ${python.pythonOnBuildForHost.interpreter} setup.py build_ext -i
44 export FONTCONFIG_FILE=${fontsConf};
45 echo y | ${python.interpreter} test/test.py
49 homepage = "https://github.com/Vayn/python-fontconfig";
50 description = "Python binding for Fontconfig";
51 license = lib.licenses.gpl3;