diff options
Diffstat (limited to 'pkgs/development/python-modules/fontbakery/default.nix')
-rw-r--r-- | pkgs/development/python-modules/fontbakery/default.nix | 68 |
1 files changed, 36 insertions, 32 deletions
diff --git a/pkgs/development/python-modules/fontbakery/default.nix b/pkgs/development/python-modules/fontbakery/default.nix index d985755364193..c875392e62f32 100644 --- a/pkgs/development/python-modules/fontbakery/default.nix +++ b/pkgs/development/python-modules/fontbakery/default.nix @@ -1,60 +1,76 @@ { lib, - buildPythonPackage, - callPackage, - fetchPypi, axisregistry, babelfont, beautifulsoup4, beziers, + buildPythonPackage, + callPackage, cmarkgfm, collidoscope, defcon, dehinter, - fonttools, + fetchPypi, font-v, + fonttools, freetype-py, gflanguages, gfsubsets, git, glyphsets, - lxml, installShellFiles, jinja2, + lxml, munkres, opentypespec, ots-python, packaging, pip-api, protobuf, - pytestCheckHook, pytest-xdist, - pythonRelaxDepsHook, + pytestCheckHook, + pythonOlder, pyyaml, - requests, requests-mock, + requests, rich, - setuptools, setuptools-scm, + setuptools, shaperglot, stringbrewer, toml, - unicodedata2, ufo2ft, ufolint, + unicodedata2, vharfbuzz, }: buildPythonPackage rec { pname = "fontbakery"; - version = "0.12.5"; + version = "0.12.9"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-DN1v5MQtMhHO12tVPkJUuIfh+X3kb1o71zAwNgtLH+I="; + hash = "sha256-Cl0jRQqF83IIldkp1VuVSS4ZeVsQH1NNpyEkpMJqhA8="; }; - pyproject = true; + pythonRelaxDeps = [ + "collidoscope" + "protobuf" + "vharfbuzz" + ]; + + build-system = [ + setuptools + setuptools-scm + ]; + + nativeBuildInputs = [ + installShellFiles + ]; dependencies = [ axisregistry @@ -65,17 +81,17 @@ buildPythonPackage rec { collidoscope defcon dehinter - fonttools font-v + fonttools freetype-py gflanguages gfsubsets glyphsets - lxml jinja2 + lxml munkres - ots-python opentypespec + ots-python packaging pip-api protobuf @@ -85,27 +101,12 @@ buildPythonPackage rec { shaperglot stringbrewer toml + ufo2ft ufolint unicodedata2 vharfbuzz - ufo2ft - ]; - build-system = [ - setuptools - setuptools-scm - ]; - nativeBuildInputs = [ - installShellFiles - pythonRelaxDepsHook - ]; - - pythonRelaxDeps = [ - "collidoscope" - "protobuf" - "vharfbuzz" ]; - doCheck = true; nativeCheckInputs = [ git pytestCheckHook @@ -113,6 +114,7 @@ buildPythonPackage rec { requests-mock ufolint ]; + preCheck = '' # Let the tests invoke 'fontbakery' command. export PATH="$out/bin:$PATH" @@ -123,6 +125,7 @@ buildPythonPackage rec { git config user.name Test git commit --allow-empty --message 'Dummy commit for tests' ''; + disabledTests = [ # These require network access: "test_check_description_broken_links" @@ -147,6 +150,7 @@ buildPythonPackage rec { meta = with lib; { description = "Tool for checking the quality of font projects"; homepage = "https://github.com/googlefonts/fontbakery"; + changelog = "https://github.com/fonttools/fontbakery/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ danc86 ]; }; |