about summary refs log tree commit diff
path: root/pkgs/development/python-modules/fontpens/default.nix
blob: 7dbf59b23b5800fa4ef5577921ef3b75d51018a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fonttools,
}:

buildPythonPackage rec {
  pname = "fontpens";
  version = "0.2.4";

  src = fetchPypi {
    pname = "fontPens";
    inherit version;
    sha256 = "1za15dzsnymq6d9x7xdfqwgw4a3003wj75fn2crhyidkfd2s3nd6";
    extension = "zip";
  };

  propagatedBuildInputs = [ fonttools ];

  # can't run normal tests due to circular dependency with fontParts
  doCheck = false;
  pythonImportsCheck =
    [ "fontPens" ]
    ++ (builtins.map (s: "fontPens." + s) [
      "angledMarginPen"
      "digestPointPen"
      "flattenPen"
      "guessSmoothPointPen"
      "marginPen"
      "penTools"
      "printPen"
      "printPointPen"
      "recordingPointPen"
      "thresholdPen"
      "thresholdPointPen"
      "transformPointPen"
    ]);

  meta = with lib; {
    description = "A collection of classes implementing the pen protocol for manipulating glyphs";
    homepage = "https://github.com/robotools/fontPens";
    license = licenses.bsd3;
    maintainers = [ maintainers.sternenseemann ];
  };
}