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