{ fetchFromGitHub, lib, bash, python3Packages, }: python3Packages.buildPythonApplication rec { pname = "nototools"; version = "0.3.2"; pyproject = true; src = fetchFromGitHub { owner = "googlefonts"; repo = "nototools"; tag = "v${version}"; sha256 = "sha256-0se0YcnhDwwMbt2C4hep0T/JEidHfFRUnm2Sy7qr2uk="; }; build-system = with python3Packages; [ setuptools setuptools-scm ]; pythonRemoveDeps = [ # https://github.com/notofonts/nototools/pull/901 "typed-ast" ]; dependencies = with python3Packages; [ afdko appdirs attrs booleanoperations brotlipy click defcon fontmath fontparts fontpens fonttools lxml mutatormath pathspec psautohint pyclipper pytz regex scour toml ufonormalizer ufoprocessor unicodedata2 zopfli ]; nativeCheckInputs = [ python3Packages.pillow python3Packages.six bash ]; checkPhase = '' patchShebangs tests/ cd tests rm gpos_diff_test.py # needs ttxn? ./run_tests ''; postInstall = '' cp -r third_party $out ''; pythonImportsCheck = [ "nototools" ]; meta = with lib; { description = "Noto fonts support tools and scripts plus web site generation"; homepage = "https://github.com/googlefonts/nototools"; license = licenses.asl20; maintainers = [ ]; }; }