Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 64 lines 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 fontmath, 7 fonttools, 8 glyphslib, 9 setuptools, 10 setuptools-scm, 11 skia-pathops, 12 ttfautohint-py, 13 ufo2ft, 14 ufolib2, 15}: 16 17buildPythonPackage rec { 18 pname = "fontmake"; 19 version = "3.9.0"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "googlefonts"; 24 repo = "fontmake"; 25 rev = "v${version}"; 26 hash = "sha256-q6ul9MYbq85RpZE0ozHOCBNAR4r9InIjumadT1GyJ6k="; 27 }; 28 29 build-system = [ 30 setuptools 31 setuptools-scm 32 ]; 33 34 dependencies = 35 [ 36 fontmath 37 fonttools 38 glyphslib 39 ufo2ft 40 ufolib2 41 ] 42 ++ fonttools.optional-dependencies.ufo 43 ++ fonttools.optional-dependencies.lxml 44 ++ fonttools.optional-dependencies.unicode; 45 46 optional-dependencies = { 47 pathops = [ skia-pathops ]; 48 autohint = [ ttfautohint-py ]; 49 json = ufolib2.optional-dependencies.json; 50 repacker = fonttools.optional-dependencies.repacker; 51 }; 52 53 nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.autohint; 54 55 pythonImportsCheck = [ "fontmake" ]; 56 57 meta = { 58 description = "Compiles fonts from various sources (.glyphs, .ufo, designspace) into binaries formats (.otf, .ttf)"; 59 homepage = "https://github.com/googlefonts/fontmake"; 60 changelog = "https://github.com/googlefonts/fontmake/releases/tag/v${version}"; 61 license = lib.licenses.asl20; 62 maintainers = [ lib.maintainers.BarinovMaxim ]; 63 }; 64}