48 buildPythonPackage rec {
53 inherit pname version;
54 hash = "sha256-61EXlf+d5kJeUF41OEnGNLaOcSvFWUDFgarVvHQZYmw=";
109 nativeCheckInputs = [
117 # Let the tests invoke 'fontbakery' command.
118 export PATH="$out/bin:$PATH"
119 # font-v tests assume they are running from a git checkout, although they
120 # don't care which one. Create a dummy git repo to satisfy the tests:
122 git config user.email test@example.invalid
123 git config user.name Test
124 git commit --allow-empty --message 'Dummy commit for tests'
127 # These require network access:
128 "test_check_description_broken_links"
129 "test_check_description_family_update"
130 "test_check_metadata_designer_profiles"
131 "test_check_metadata_has_tags"
132 "test_check_metadata_includes_production_subsets"
133 "test_check_vertical_metrics"
134 "test_check_vertical_metrics_regressions"
135 "test_check_cjk_vertical_metrics"
136 "test_check_cjk_vertical_metrics_regressions"
137 "test_check_fontbakery_version_live_apis"
141 installShellCompletion --bash --name fontbakery \
142 snippets/fontbakery.bash-completion
145 passthru.tests.simple = callPackage ./tests.nix { };
148 description = "Tool for checking the quality of font projects";
149 homepage = "https://github.com/googlefonts/fontbakery";
150 license = licenses.asl20;
151 maintainers = with maintainers; [ danc86 ];