Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ufo2ft / default.nix
blob5cbcf1370372f6b7f2571026078547c56832bb39
1 { lib
2 , booleanoperations
3 , buildPythonPackage
4 , cffsubr
5 , compreffor
6 , cu2qu
7 , defcon
8 , fetchPypi
9 , fonttools
10 , pytestCheckHook
11 , pythonOlder
12 , pythonRelaxDepsHook
13 , setuptools-scm
14 , skia-pathops
15 , ufolib2
18 buildPythonPackage rec {
19   pname = "ufo2ft";
20   version = "3.1.0";
21   pyproject = true;
23   disabled = pythonOlder "3.8";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-5EUrML1Yd88tVEP+Kd9TmXm+5Ejk/XIH/USYBakK/wQ=";
28   };
30   nativeBuildInputs = [
31     setuptools-scm
32     pythonRelaxDepsHook
33   ];
35   pythonRelaxDeps = [
36     "cffsubr"
37   ];
39   propagatedBuildInputs = [
40     cu2qu
41     fonttools
42     defcon
43     compreffor
44     booleanoperations
45     cffsubr
46     ufolib2
47     skia-pathops
48   ]
49   ++ fonttools.optional-dependencies.lxml
50   ++ fonttools.optional-dependencies.ufo;
52   nativeCheckInputs = [
53     pytestCheckHook
54   ];
56   disabledTests = [
57     # Do not depend on skia.
58     "test_removeOverlaps_CFF_pathops"
59     "test_removeOverlaps_pathops"
60     "test_custom_filters_as_argument"
61     "test_custom_filters_as_argument"
62     # Some integration tests fail
63     "test_compileVariableCFF2"
64     "test_compileVariableTTF"
65     "test_drop_glyph_names_variable"
66     "test_drop_glyph_names_variable"
67   ];
69   pythonImportsCheck = [
70     "ufo2ft"
71   ];
73   meta = with lib; {
74     description = "Bridge from UFOs to FontTools objects";
75     homepage = "https://github.com/googlefonts/ufo2ft";
76     changelog = "https://github.com/googlefonts/ufo2ft/releases/tag/v${version}";
77     license = licenses.mit;
78     maintainers = with maintainers; [ ];
79   };