nixpkgs/pkgs/development/python-modules/fonttools/default.nix

74 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, brotlipy
, zopfli
, fs
, lxml
, scipy
, munkres
, unicodedata2
, sympy
, matplotlib
, reportlab
2017-05-31 02:30:24 +01:00
, pytest
, pytest-randomly
2018-03-02 02:21:19 +00:00
, glibcLocales
2017-05-31 02:30:24 +01:00
}:
buildPythonPackage rec {
pname = "fonttools";
version = "4.14.0";
disabled = pythonOlder "3.6";
2017-05-31 02:30:24 +01:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "0aiaxjg2v2391gxnhp4nvmgfb3ygm6x7n080s5mnkfjq2bq319in";
2017-05-31 02:30:24 +01:00
};
# all dependencies are optional, but
# we run the checks with them
2017-05-31 02:30:24 +01:00
checkInputs = [
pytest
pytest-randomly
glibcLocales
# etree extra
lxml
# ufo extra
fs
# woff extra
brotlipy
zopfli
# unicode extra
unicodedata2
# interpolatable extra
scipy
munkres
# symfont
sympy
# varLib
matplotlib
# pens
reportlab
2017-05-31 02:30:24 +01:00
];
2018-03-02 02:21:19 +00:00
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
# avoid timing issues with timestamps in subset_test.py and ttx_test.py
checkPhase = ''
pytest Tests fontTools \
-k 'not ttcompile_timestamp_calcs and not recalc_timestamp'
'';
2017-05-31 02:30:24 +01:00
meta = {
homepage = "https://github.com/fonttools/fonttools";
2017-05-31 02:30:24 +01:00
description = "A library to manipulate font files from Python";
license = lib.licenses.mit;
2017-05-31 02:30:24 +01:00
};
}