Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ufo2ft / default.nix
blob98087eaae75d1f958dfc8f075ad61a996712a88e
1 { lib
2 , buildPythonPackage
3 , fetchPypi
5 # build
6 , setuptools-scm
8 # runtime
9 , booleanoperations
10 , cffsubr
11 , compreffor
12 , cu2qu
13 , defcon
14 , fonttools
15 , skia-pathops
16 , ufoLib2
18 # tests
19 , pytestCheckHook
22 buildPythonPackage rec {
23   pname = "ufo2ft";
24   version = "2.33.4";
25   format = "setuptools";
27   src = fetchPypi {
28     inherit pname version;
29     hash = "sha256-e6p/H1Vub0Ln0VhQvwsVLuD/p8uNG5oCPhfQPCTl1nY=";
30   };
32   nativeBuildInputs = [
33     setuptools-scm
34   ];
36   propagatedBuildInputs = [
37     cu2qu
38     fonttools
39     defcon
40     compreffor
41     booleanoperations
42     cffsubr
43     ufoLib2
44     skia-pathops
45   ]
46   ++ fonttools.optional-dependencies.lxml
47   ++ fonttools.optional-dependencies.ufo;
49   nativeCheckInputs = [
50     pytestCheckHook
51   ];
53   pytestFlagsArray = [
54     # Do not depend on skia.
55     "--deselect=tests/integration_test.py::IntegrationTest::test_removeOverlaps_CFF_pathops"
56     "--deselect=tests/integration_test.py::IntegrationTest::test_removeOverlaps_pathops"
57     "--deselect=tests/preProcessor_test.py::TTFPreProcessorTest::test_custom_filters_as_argument"
58     "--deselect=tests/preProcessor_test.py::TTFInterpolatablePreProcessorTest::test_custom_filters_as_argument"
59   ];
61   pythonImportsCheck = [ "ufo2ft" ];
63   meta = with lib; {
64     description = "Bridge from UFOs to FontTools objects";
65     homepage = "https://github.com/googlefonts/ufo2ft";
66     license = licenses.mit;
67     maintainers = with maintainers; [ ];
68   };