48 buildPythonPackage rec {
53 disabled = pythonOlder "3.8";
56 inherit pname version;
57 hash = "sha256-+9O7cAE6CUATvybG22qULNNHi94zSGqU9UjhvrF9R8k=";
60 env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
112 nativeCheckInputs = [
121 # Let the tests invoke 'fontbakery' command.
122 export PATH="$out/bin:$PATH"
123 # font-v tests assume they are running from a git checkout, although they
124 # don't care which one. Create a dummy git repo to satisfy the tests:
126 git config user.email test@example.invalid
127 git config user.name Test
128 git commit --allow-empty --message 'Dummy commit for tests'
132 # These require network access
133 "test_check_description_broken_links"
134 "test_check_description_family_update"
135 "test_check_metadata_designer_profiles"
136 "test_check_metadata_has_tags"
137 "test_check_metadata_includes_production_subsets"
138 "test_check_vertical_metrics"
139 "test_check_vertical_metrics_regressions"
140 "test_check_cjk_vertical_metrics"
141 "test_check_cjk_vertical_metrics_regressions"
142 "test_check_fontbakery_version_live_apis"
144 "test_check_shape_languages"
148 installShellCompletion --bash --name fontbakery \
149 snippets/fontbakery.bash-completion
152 passthru.tests.simple = callPackage ./tests.nix { };
155 description = "Tool for checking the quality of font projects";
156 homepage = "https://github.com/googlefonts/fontbakery";
157 changelog = "https://github.com/fonttools/fontbakery/blob/v${version}/CHANGELOG.md";
158 license = licenses.asl20;
159 maintainers = with maintainers; [ danc86 ];