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";
39 hash = "sha256:0955dvbydifhgx9gswbf5drsmmghry7iyf6jwz6qczhj86clswcm";
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
63 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang (toString [
64 "-Wno-error=incompatible-function-pointer-types"
65 "-Wno-error=int-conversion"
68 # setup.py will always (re-)execute cmake in buildPhase
83 ++ defcon.optional-dependencies.lxml
84 ++ fonttools.optional-dependencies.lxml
85 ++ fonttools.optional-dependencies.ufo
86 ++ fonttools.optional-dependencies.unicode
87 ++ fonttools.optional-dependencies.woff;
90 FORCE_SYSTEM_LIBXML2 = true;
92 nativeCheckInputs = [ pytestCheckHook ];
95 export PATH=$PATH:$out/bin
97 # Remove build artifacts to prevent them from messing with the tests
103 # broke in the fontforge 4.51 -> 4.53 update
108 ++ lib.optionals (stdenv.cc.isGNU) [
109 # broke in the gcc 13 -> 14 update
112 "test_other_input_formats"
114 ++ lib.optionals (!runAllTests) [
115 # Disable slow tests, reduces test time ~25 %
120 "test_filename_without_dir"
124 ++ lib.optionals (stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isRiscV) [
125 # unknown reason so far
126 # https://github.com/adobe-type-tools/afdko/issues/1425
129 ++ lib.optionals (stdenv.hostPlatform.isi686) [
131 "test_type1mm_inputs"
135 fullTestsuite = afdko.override { runAllTests = true; };
139 description = "Adobe Font Development Kit for OpenType";
140 changelog = "https://github.com/adobe-type-tools/afdko/blob/${version}/NEWS.md";
141 homepage = "https://adobe-type-tools.github.io/afdko";
142 license = licenses.asl20;
143 maintainers = with maintainers; [ sternenseemann ];