Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 44 lines 1.2 kB view raw
1{ lib, buildPythonPackage, fetchPypi, python 2, fonttools, lxml, fs, unicodedata2 3, defcon, fontpens, fontmath, booleanoperations 4, pytest, setuptools_scm 5}: 6 7buildPythonPackage rec { 8 pname = "fontParts"; 9 version = "0.9.10"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "0hwjnqbkcfkhigx581w4532vddsx5wiy73gx46kjisp0hlir9628"; 14 extension = "zip"; 15 }; 16 17 nativeBuildInputs = [ setuptools_scm ]; 18 19 propagatedBuildInputs = [ 20 booleanoperations 21 fonttools 22 unicodedata2 # fonttools[unicode] extra 23 lxml # fonttools[lxml] extra 24 fs # fonttools[ufo] extra 25 defcon 26 fontpens # defcon[pens] extra 27 fontmath 28 ]; 29 30 checkPhase = '' 31 runHook preCheck 32 ${python.interpreter} Lib/fontParts/fontshell/test.py 33 runHook postCheck 34 ''; 35 checkInputs = [ pytest ]; 36 37 meta = with lib; { 38 description = "An API for interacting with the parts of fonts during the font development process."; 39 homepage = "https://github.com/robotools/fontParts"; 40 changelog = "https://github.com/robotools/fontParts/releases/tag/v${version}"; 41 license = licenses.mit; 42 maintainers = [ maintainers.sternenseemann ]; 43 }; 44}