1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 babelfont,
6 kurbopy,
7 fonttools,
8 skia-pathops,
9 tqdm,
10 uharfbuzz,
11 unittestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "collidoscope";
16 version = "0.6.5";
17 format = "setuptools";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-D7MzJ8FZjA/NSXCqCJQ9a02FPPi3t4W0q65wRIDcfSA=";
22 };
23
24 propagatedBuildInputs = [
25 babelfont
26 kurbopy
27 fonttools
28 skia-pathops
29 tqdm
30 uharfbuzz
31 ];
32
33 doCheck = true;
34 nativeCheckInputs = [ unittestCheckHook ];
35 unittestFlagsArray = [
36 "-s"
37 "test"
38 "-v"
39 ];
40
41 meta = with lib; {
42 description = "Python library to detect glyph collisions in fonts";
43 homepage = "https://github.com/googlefonts/collidoscope";
44 license = licenses.mit;
45 maintainers = with maintainers; [ danc86 ];
46 };
47}