Skip to content

Commit

Permalink
pythonPackages.fontconfig: init at 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gnidorah authored and FRidh committed Oct 19, 2017
1 parent 1923cab commit b17ec54
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/development/python-modules/python-fontconfig/default.nix
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -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 { };
Expand Down

0 comments on commit b17ec54

Please sign in to comment.