1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 babelfont,
7 kurbopy,
8 fonttools,
9 skia-pathops,
10 tqdm,
11 uharfbuzz,
12 unittestCheckHook,
13 pytestCheckHook,
14}:
15
16buildPythonPackage rec {
17 pname = "collidoscope";
18 version = "0.6.5";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "googlefonts";
23 repo = "collidoscope";
24 tag = "v${version}";
25 hash = "sha256-1tKbv+i2gbUFJa94xSEj5BrEpZ0+ULgglkYvGMP4NXw=";
26 };
27
28 build-system = [
29 setuptools
30 ];
31
32 dependencies = [
33 babelfont
34 kurbopy
35 fonttools
36 skia-pathops
37 tqdm
38 uharfbuzz
39 ];
40
41 nativeCheckInputs = [ unittestCheckHook ];
42 unittestFlagsArray = [
43 "-s"
44 "test"
45 "-v"
46 ];
47
48 __darwinAllowLocalNetworking = true;
49
50 meta = {
51 description = "Python library to detect glyph collisions in fonts";
52 homepage = "https://github.com/googlefonts/collidoscope";
53 license = lib.licenses.mit;
54 maintainers = with lib.maintainers; [ danc86 ];
55 };
56}