summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fontfeatures/default.nix
blob: 450380bb166d4521dcec022679908970a6d5bfb7 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  beziers,
  fonttools,
  fs,
  glyphtools,
  lxml,
  pytestCheckHook,
  youseedee,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "fontfeatures";
  version = "1.9.0";

  pyproject = true;
  build-system = [ setuptools-scm ];

  src = fetchPypi {
    pname = "fontfeatures";
    inherit version;
    hash = "sha256-3PpUgaTXyFcthJrFaQqeUOvDYYFosJeXuRFnFrwp0R8=";
  };

  propagatedBuildInputs = [
    beziers
    fonttools
    fs
    glyphtools
    lxml
    youseedee
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  disabledTestPaths = [
    # These tests require babelfont but we have to leave it out and skip them
    # to break the cyclic dependency with babelfont.
    "tests/test_shaping_generic.py"
    "tests/test_shaping_harfbuzz.py"
  ];

  meta = {
    description = "Python library for compiling OpenType font features";
    homepage = "https://github.com/simoncozens/fontFeatures";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ danc86 ];
  };
}