2019-05-06 21:42:31 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-08-25 15:45:29 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, brotlipy
|
|
|
|
, zopfli
|
|
|
|
, fs
|
|
|
|
, lxml
|
|
|
|
, scipy
|
|
|
|
, munkres
|
|
|
|
, unicodedata2
|
|
|
|
, sympy
|
|
|
|
, matplotlib
|
|
|
|
, reportlab
|
2020-11-13 10:41:15 +00:00
|
|
|
, sphinx
|
2017-05-31 02:30:24 +01:00
|
|
|
, pytest
|
2020-08-25 15:45:29 +01:00
|
|
|
, pytest-randomly
|
2018-03-02 02:21:19 +00:00
|
|
|
, glibcLocales
|
2017-05-31 02:30:24 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fonttools";
|
2021-02-26 19:14:57 +00:00
|
|
|
version = "4.21.1";
|
2020-08-25 15:45:29 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-05-31 02:30:24 +01:00
|
|
|
|
2020-08-25 15:45:29 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-02-26 19:14:57 +00:00
|
|
|
sha256 = "1x9qrg6ppqhm5214ymwvn0r34qdz8pqvyxd0sj7rkp06wa757z2i";
|
2017-05-31 02:30:24 +01:00
|
|
|
};
|
|
|
|
|
2020-08-25 15:45:29 +01:00
|
|
|
# all dependencies are optional, but
|
|
|
|
# we run the checks with them
|
2017-05-31 02:30:24 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
2020-08-25 15:45:29 +01:00
|
|
|
pytest-randomly
|
2018-03-02 02:20:25 +00:00
|
|
|
glibcLocales
|
2020-08-25 15:45:29 +01:00
|
|
|
# etree extra
|
|
|
|
lxml
|
|
|
|
# ufo extra
|
|
|
|
fs
|
|
|
|
# woff extra
|
|
|
|
brotlipy
|
|
|
|
zopfli
|
|
|
|
# unicode extra
|
|
|
|
unicodedata2
|
|
|
|
# interpolatable extra
|
|
|
|
scipy
|
|
|
|
munkres
|
|
|
|
# symfont
|
|
|
|
sympy
|
|
|
|
# varLib
|
|
|
|
matplotlib
|
|
|
|
# pens
|
|
|
|
reportlab
|
2020-11-13 10:41:15 +00:00
|
|
|
sphinx
|
2017-05-31 02:30:24 +01:00
|
|
|
];
|
|
|
|
|
2018-03-02 02:21:19 +00:00
|
|
|
preCheck = ''
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
2020-08-25 15:45:29 +01:00
|
|
|
# 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'
|
|
|
|
'';
|
|
|
|
|
2021-02-28 14:27:53 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/fonttools/fonttools";
|
2017-05-31 02:30:24 +01:00
|
|
|
description = "A library to manipulate font files from Python";
|
2021-02-28 14:27:53 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
2017-05-31 02:30:24 +01:00
|
|
|
};
|
|
|
|
}
|