pythonPackages.fonttools: 4.13.0 → 4.14.0

This commit is contained in:
sternenseemann 2020-08-25 16:45:29 +02:00 committed by Jon
parent 5c000c1a03
commit 3f53134108

View File

@ -1,38 +1,70 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, isPy27 , pythonOlder
, numpy , brotlipy
, zopfli
, fs
, lxml
, scipy
, munkres
, unicodedata2
, sympy
, matplotlib
, reportlab
, pytest , pytest
, pytestrunner , pytest-randomly
, glibcLocales , glibcLocales
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "fonttools"; pname = "fonttools";
version = "4.13.0"; version = "4.14.0";
disabled = isPy27; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = pname;
sha256 = "63987cd374c39a75146748f8be8637634221e53fef15cdf76f17777676d8545a"; repo = pname;
extension = "zip"; rev = version;
sha256 = "0aiaxjg2v2391gxnhp4nvmgfb3ygm6x7n080s5mnkfjq2bq319in";
}; };
buildInputs = [ # all dependencies are optional, but
numpy # we run the checks with them
];
checkInputs = [ checkInputs = [
pytest pytest
pytestrunner pytest-randomly
glibcLocales glibcLocales
# etree extra
lxml
# ufo extra
fs
# woff extra
brotlipy
zopfli
# unicode extra
unicodedata2
# interpolatable extra
scipy
munkres
# symfont
sympy
# varLib
matplotlib
# pens
reportlab
]; ];
preCheck = '' preCheck = ''
export LC_ALL="en_US.UTF-8" 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'
'';
meta = { meta = {
homepage = "https://github.com/fonttools/fonttools"; homepage = "https://github.com/fonttools/fonttools";
description = "A library to manipulate font files from Python"; description = "A library to manipulate font files from Python";