mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
python3Packages.fonttools: 4.21.1 -> 4.26.2
We can't yet upgrade to fonttools 4.27.* because afdko doesn't support it yet. * Refactor to use pytestCheckHook * No longer necessary to set locale prior to running the tests * Python 3.6 support will be dropped soon Change Log entrys: * https://github.com/fonttools/fonttools/releases/tag/4.22.0 * https://github.com/fonttools/fonttools/releases/tag/4.22.1 * https://github.com/fonttools/fonttools/releases/tag/4.23.0 * https://github.com/fonttools/fonttools/releases/tag/4.23.1 * https://github.com/fonttools/fonttools/releases/tag/4.24.0 * https://github.com/fonttools/fonttools/releases/tag/4.24.1 * https://github.com/fonttools/fonttools/releases/tag/4.24.2 * https://github.com/fonttools/fonttools/releases/tag/4.24.3 * https://github.com/fonttools/fonttools/releases/tag/4.24.4 * https://github.com/fonttools/fonttools/releases/tag/4.25.0 * https://github.com/fonttools/fonttools/releases/tag/4.25.1 * https://github.com/fonttools/fonttools/releases/tag/4.25.2 * https://github.com/fonttools/fonttools/releases/tag/4.26.0 * https://github.com/fonttools/fonttools/releases/tag/4.26.1 * https://github.com/fonttools/fonttools/releases/tag/4.26.2
This commit is contained in:
parent
bff49dab05
commit
d11ad3e625
@ -13,29 +13,30 @@
|
||||
, matplotlib
|
||||
, reportlab
|
||||
, sphinx
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, pytest-randomly
|
||||
, glibcLocales
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fonttools";
|
||||
version = "4.21.1";
|
||||
version = "4.26.2";
|
||||
|
||||
# Bump to 3.7 when https://github.com/fonttools/fonttools/pull/2417 is merged
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1x9qrg6ppqhm5214ymwvn0r34qdz8pqvyxd0sj7rkp06wa757z2i";
|
||||
sha256 = "1zp9idjkn4bn1a4pn8x64vi8j1ijdsd4qvgf1f70dfwqvw6ak1i6";
|
||||
};
|
||||
|
||||
# all dependencies are optional, but
|
||||
# we run the checks with them
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestCheckHook
|
||||
pytest-randomly
|
||||
glibcLocales
|
||||
# etree extra
|
||||
lxml
|
||||
# ufo extra
|
||||
@ -43,8 +44,6 @@ buildPythonPackage rec {
|
||||
# woff extra
|
||||
brotlipy
|
||||
zopfli
|
||||
# unicode extra
|
||||
unicodedata2
|
||||
# interpolatable extra
|
||||
scipy
|
||||
munkres
|
||||
@ -55,17 +54,23 @@ buildPythonPackage rec {
|
||||
# pens
|
||||
reportlab
|
||||
sphinx
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
# unicode extra
|
||||
unicodedata2
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
# tests want to execute the "fonttools" executable from $PATH
|
||||
export PATH="$out/bin:$PATH"
|
||||
'';
|
||||
|
||||
# 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'
|
||||
'';
|
||||
# Timestamp tests have timing issues probably related
|
||||
# to our file timestamp normalization
|
||||
disabledTests = [
|
||||
"test_recalc_timestamp_ttf"
|
||||
"test_recalc_timestamp_otf"
|
||||
"test_ttcompile_timestamp_calcs"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/fonttools/fonttools";
|
||||
|
Loading…
Reference in New Issue
Block a user