Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / fontpens / default.nix
blob02adb3b064265d37e0183a0eb768a3de7fce77fd
1 { lib, buildPythonPackage, fetchPypi, fonttools }:
3 buildPythonPackage rec {
4   pname = "fontPens";
5   version = "0.2.4";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "1za15dzsnymq6d9x7xdfqwgw4a3003wj75fn2crhyidkfd2s3nd6";
10     extension = "zip";
11   };
13   propagatedBuildInputs = [ fonttools ];
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   ]);
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   };