Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.6 kB · 125 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126{ lib, stdenv, buildPythonPackage, fetchPypi, fetchpatch, pythonOlder, fonttools, defcon, lxml, fs, unicodedata2, zopfli, brotlipy, fontpens, brotli, fontmath, mutatormath, booleanoperations, ufoprocessor, ufonormalizer, psautohint, tqdm, setuptools-scm, scikit-build, cmake, antlr4_9, libxml2, pytestCheckHook# Enables some expensive tests, useful for verifying an update, runAllTests ? false, afdko}:
buildPythonPackage rec { pname = "afdko"; version = "3.9.3"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-v0fIhf3P5Xjdn5/ryRNj0Q2YHAisMqi5RTmJQabaUO0="; };
nativeBuildInputs = [ setuptools-scm scikit-build cmake ];
buildInputs = [ antlr4_9.runtime.cpp libxml2.dev ];
patches = [ # Don't try to install cmake and ninja using pip ./no-pypi-build-tools.patch
# Use antlr4 runtime from nixpkgs and link it dynamically ./use-dynamic-system-antlr4-runtime.patch ];
# setup.py will always (re-)execute cmake in buildPhase dontConfigure = true;
propagatedBuildInputs = [ booleanoperations fonttools lxml # fonttools[lxml], defcon[lxml] extra fs # fonttools[ufo] extra unicodedata2 # fonttools[unicode] extra brotlipy # fonttools[woff] extra zopfli # fonttools[woff] extra fontpens brotli defcon fontmath mutatormath ufoprocessor ufonormalizer psautohint tqdm ];
# Use system libxml2 FORCE_SYSTEM_LIBXML2 = true;
nativeCheckInputs = [ pytestCheckHook ];
preCheck = '' export PATH=$PATH:$out/bin '';
disabledTests = lib.optionals (!runAllTests) [ # Disable slow tests, reduces test time ~25 % "test_report" "test_post_overflow" "test_cjk" "test_extrapolate" "test_filename_without_dir" "test_overwrite" "test_options" ] ++ lib.optionals (stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isRiscV) [ # unknown reason so far # https://github.com/adobe-type-tools/afdko/issues/1425 "test_spec" ] ++ lib.optionals (stdenv.hostPlatform.isi686) [ "test_dump_option" "test_type1mm_inputs" ];
passthru.tests = { fullTestsuite = afdko.override { runAllTests = true; }; };
meta = with lib; { changelog = "https://github.com/adobe-type-tools/afdko/blob/${version}/NEWS.md"; description = "Adobe Font Development Kit for OpenType"; homepage = "https://adobe-type-tools.github.io/afdko"; license = licenses.asl20; maintainers = [ maintainers.sternenseemann ]; };}