1{ lib, buildPythonPackage, fetchPypi, python
2, fonttools, lxml, fs, unicodedata2
3, defcon, fontpens, fontmath, booleanoperations
4, pytest
5}:
6
7buildPythonPackage rec {
8 pname = "fontParts";
9 version = "0.9.6";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "0q8ilc1ypmasci2x1nq69hnfsnvbi1czaxgsb3zgqd8777bn5v9z";
14 extension = "zip";
15 };
16
17 propagatedBuildInputs = [
18 booleanoperations
19 fonttools
20 unicodedata2 # fonttools[unicode] extra
21 lxml # fonttools[lxml] extra
22 fs # fonttools[ufo] extra
23 defcon
24 fontpens # defcon[pens] extra
25 fontmath
26 ];
27
28 checkPhase = ''
29 ${python.interpreter} Lib/fontParts/fontshell/test.py
30 '';
31 checkInputs = [ pytest ];
32
33 meta = with lib; {
34 description = "An API for interacting with the parts of fonts during the font development process.";
35 homepage = "https://github.com/robotools/fontParts";
36 changelog = "https://github.com/robotools/fontParts/releases/tag/v${version}";
37 license = licenses.mit;
38 maintainers = [ maintainers.sternenseemann ];
39 };
40}