8 fs, # for fonttools extras
14 psautohint, # for passthru.tests
17 buildPythonPackage rec {
20 format = "setuptools";
22 disabled = pythonOlder "3.7";
24 src = fetchFromGitHub {
25 owner = "adobe-type-tools";
28 sha256 = "125nx7accvbk626qlfar90va1995kp9qfrz6a978q4kv2kk37xai";
29 fetchSubmodules = true; # data dir for tests
33 echo '#define PSAUTOHINT_VERSION "${version}"' > libpsautohint/src/version.h
34 sed -i '/use_scm_version/,+3d' setup.py
35 sed -i '/setup(/a \ version="${version}",' setup.py
38 nativeBuildInputs = [ setuptools-scm ];
40 propagatedBuildInputs = [
51 disabledTests = lib.optionals (!runAllTests) [
52 # Slow tests, reduces test time from ~5 mins to ~30s
60 # flaky tests (see https://github.com/adobe-type-tools/psautohint/issues/385)
61 "test_hashmap_old_version"
62 "test_hashmap_no_version"
66 fullTestsuite = psautohint.override { runAllTests = true; };
70 description = "Script to normalize the XML and other data inside of a UFO";
71 homepage = "https://github.com/adobe-type-tools/psautohint";
72 license = licenses.bsd3;
73 maintainers = [ maintainers.sternenseemann ];