summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/collidoscope/default.nix
blob: b8c334bb6736659b92622a909c58de9ce5d92c22 (plain)
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
47
48
49
50
51
52
53
54
55
56
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  babelfont,
  kurbopy,
  fonttools,
  skia-pathops,
  tqdm,
  uharfbuzz,
  unittestCheckHook,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "collidoscope";
  version = "0.6.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "googlefonts";
    repo = "collidoscope";
    tag = "v${version}";
    hash = "sha256-1tKbv+i2gbUFJa94xSEj5BrEpZ0+ULgglkYvGMP4NXw=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    babelfont
    kurbopy
    fonttools
    skia-pathops
    tqdm
    uharfbuzz
  ];

  nativeCheckInputs = [ unittestCheckHook ];
  unittestFlagsArray = [
    "-s"
    "test"
    "-v"
  ];

  __darwinAllowLocalNetworking = true;

  meta = {
    description = "Python library to detect glyph collisions in fonts";
    homepage = "https://github.com/googlefonts/collidoscope";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ danc86 ];
  };
}