4 # Enables some expensive tests, useful for verifying an update
28 buildPythonPackage rec {
33 disabled = pythonOlder "3.8";
35 src = fetchFromGitHub {
36 owner = "adobe-type-tools";
38 rev = "refs/tags/${version}";
39 hash = "sha256-I5GKPkbyQX8QNSZgNB3wPKdWwpx8Xkklesu1M7nhgp8=";
42 build-system = [ setuptools-scm ];
56 # Don't try to install cmake and ninja using pip
57 ./no-pypi-build-tools.patch
59 # Use antlr4 runtime from nixpkgs and link it dynamically
60 ./use-dynamic-system-antlr4-runtime.patch
65 substituteInPlace tests/tx_data/expected_output/alt-missing-glif.pfb --replace 2023 2024
68 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang (toString [
69 "-Wno-error=incompatible-function-pointer-types"
70 "-Wno-error=int-conversion"
73 # setup.py will always (re-)execute cmake in buildPhase
88 ++ defcon.optional-dependencies.lxml
89 ++ fonttools.optional-dependencies.lxml
90 ++ fonttools.optional-dependencies.ufo
91 ++ fonttools.optional-dependencies.unicode
92 ++ fonttools.optional-dependencies.woff;
95 FORCE_SYSTEM_LIBXML2 = true;
97 nativeCheckInputs = [ pytestCheckHook ];
100 export PATH=$PATH:$out/bin
102 # Remove build artifacts to prevent them from messing with the tests
108 # broke in the fontforge 4.51 -> 4.53 update
113 ++ lib.optionals (stdenv.cc.isGNU) [
114 # broke in the gcc 13 -> 14 update
117 "test_other_input_formats"
119 ++ lib.optionals (!runAllTests) [
120 # Disable slow tests, reduces test time ~25 %
125 "test_filename_without_dir"
129 ++ lib.optionals (stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isRiscV) [
130 # unknown reason so far
131 # https://github.com/adobe-type-tools/afdko/issues/1425
134 ++ lib.optionals (stdenv.hostPlatform.isi686) [
136 "test_type1mm_inputs"
140 fullTestsuite = afdko.override { runAllTests = true; };
144 description = "Adobe Font Development Kit for OpenType";
145 changelog = "https://github.com/adobe-type-tools/afdko/blob/${version}/NEWS.md";
146 homepage = "https://adobe-type-tools.github.io/afdko";
147 license = licenses.asl20;
148 maintainers = with maintainers; [ sternenseemann ];