1 { lib, buildPythonPackage, fetchPypi, fontconfig, python, cython, freefont_ttf, makeFontsConf }:
4 fontsConf = makeFontsConf {
5 fontDirectories = [ freefont_ttf ];
7 in buildPythonPackage rec {
8 pname = "Python-fontconfig";
12 inherit pname version;
13 sha256 = "154rfd0ygcbj9y8m32n537b457yijpfx9dvmf76vi0rg4ikf7kxp";
16 buildInputs = [ fontconfig ];
17 nativeBuildInputs = [ cython ];
20 ${python.interpreter} setup.py build_ext -i
24 export FONTCONFIG_FILE=${fontsConf};
25 echo y | ${python.interpreter} test/test.py
29 homepage = "https://github.com/Vayn/python-fontconfig";
30 description = "Python binding for Fontconfig";
31 license = lib.licenses.gpl3;
32 maintainers = with lib.maintainers; [ gnidorah ];