diff options
author | gnidorah <gnidorah@users.noreply.github.com> | 2017-10-19 13:35:09 +0300 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-10-19 20:30:22 +0200 |
commit | b17ec549a14a4b3fb8cdfff914afddd65fee942e (patch) | |
tree | 0480b21db5fbf7ebf9a4e5ae03da0a26767bfd80 /pkgs/development | |
parent | 1923cabeb4dae8fe9e6655d375cbd638965b1b9d (diff) | |
download | nixlib-b17ec549a14a4b3fb8cdfff914afddd65fee942e.tar nixlib-b17ec549a14a4b3fb8cdfff914afddd65fee942e.tar.gz nixlib-b17ec549a14a4b3fb8cdfff914afddd65fee942e.tar.bz2 nixlib-b17ec549a14a4b3fb8cdfff914afddd65fee942e.tar.lz nixlib-b17ec549a14a4b3fb8cdfff914afddd65fee942e.tar.xz nixlib-b17ec549a14a4b3fb8cdfff914afddd65fee942e.tar.zst nixlib-b17ec549a14a4b3fb8cdfff914afddd65fee942e.zip |
pythonPackages.fontconfig: init at 0.5.1
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/python-fontconfig/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-fontconfig/default.nix b/pkgs/development/python-modules/python-fontconfig/default.nix new file mode 100644 index 000000000000..a8faadffc112 --- /dev/null +++ b/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 ]; + }; +} |