1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

pythonPackages.fontconfig: init at 0.5.1

This commit is contained in:
gnidorah 2017-10-19 13:35:09 +03:00 committed by Frederik Rietdijk
parent 1923cabeb4
commit b17ec549a1
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchPypi, fontconfig, python, freefont_ttf, makeFontsConf }:
let
fontsConf = makeFontsConf {
fontDirectories = [ freefont_ttf ];
};
in buildPythonPackage rec {
pname = "Python-fontconfig";
version = "0.5.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "154rfd0ygcbj9y8m32n537b457yijpfx9dvmf76vi0rg4ikf7kxp";
};
buildInputs = [ fontconfig ];
checkPhase = ''
export FONTCONFIG_FILE=${fontsConf};
echo y | ${python.interpreter} test/test.py
'';
meta = {
homepage = https://github.com/Vayn/python-fontconfig;
description = "Python binding for Fontconfig";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ gnidorah ];
};
}

View file

@ -535,6 +535,8 @@ in {
};
} else null;
python-fontconfig = callPackage ../development/python-modules/python-fontconfig { };
funcsigs = callPackage ../development/python-modules/funcsigs { };
APScheduler = callPackage ../development/python-modules/APScheduler { };