nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 62 lines 1.4 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, fonttools 6, defcon 7, compreffor 8, booleanoperations 9, cffsubr 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "ufo2ft"; 15 version = "2.27.0"; 16 17 format = "setuptools"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "r5bE4M/blt5TKzP43MpijwYY6ll3aasszmGksY5WTTE="; 22 }; 23 24 patches = [ 25 # Use cu2qu from fonttools. 26 # https://github.com/googlefonts/ufo2ft/pull/461 27 ./fonttools-cu2qu.patch 28 ]; 29 30 nativeBuildInputs = [ 31 setuptools-scm 32 ]; 33 34 propagatedBuildInputs = [ 35 fonttools 36 defcon 37 compreffor 38 booleanoperations 39 cffsubr 40 ]; 41 42 checkInputs = [ 43 pytestCheckHook 44 ]; 45 46 pytestFlagsArray = [ 47 # Do not depend on skia. 48 "--deselect=tests/integration_test.py::IntegrationTest::test_removeOverlaps_CFF_pathops" 49 "--deselect=tests/integration_test.py::IntegrationTest::test_removeOverlaps_pathops" 50 "--deselect=tests/preProcessor_test.py::TTFPreProcessorTest::test_custom_filters_as_argument" 51 "--deselect=tests/preProcessor_test.py::TTFInterpolatablePreProcessorTest::test_custom_filters_as_argument" 52 ]; 53 54 pythonImportsCheck = [ "ufo2ft" ]; 55 56 meta = with lib; { 57 description = "Bridge from UFOs to FontTools objects"; 58 homepage = "https://github.com/googlefonts/ufo2ft"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ ]; 61 }; 62}