1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fonttools,
6}:
7
8buildPythonPackage rec {
9 pname = "fontpens";
10 version = "0.2.4";
11
12 src = fetchPypi {
13 pname = "fontPens";
14 inherit version;
15 sha256 = "1za15dzsnymq6d9x7xdfqwgw4a3003wj75fn2crhyidkfd2s3nd6";
16 extension = "zip";
17 };
18
19 propagatedBuildInputs = [ fonttools ];
20
21 # can't run normal tests due to circular dependency with fontParts
22 doCheck = false;
23 pythonImportsCheck =
24 [ "fontPens" ]
25 ++ (builtins.map (s: "fontPens." + s) [
26 "angledMarginPen"
27 "digestPointPen"
28 "flattenPen"
29 "guessSmoothPointPen"
30 "marginPen"
31 "penTools"
32 "printPen"
33 "printPointPen"
34 "recordingPointPen"
35 "thresholdPen"
36 "thresholdPointPen"
37 "transformPointPen"
38 ]);
39
40 meta = with lib; {
41 description = "A collection of classes implementing the pen protocol for manipulating glyphs";
42 homepage = "https://github.com/robotools/fontPens";
43 license = licenses.bsd3;
44 maintainers = [ maintainers.sternenseemann ];
45 };
46}