2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools-scm
|
|
|
|
, fonttools
|
|
|
|
, defcon
|
|
|
|
, compreffor
|
|
|
|
, booleanoperations
|
|
|
|
, cffsubr
|
2022-08-12 12:06:08 +00:00
|
|
|
, ufoLib2
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ufo2ft";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.28.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-pWHvjAvHNWlmJiQ75JRmFyrjYnzbJG7M8/DGoIWpEBk=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Use cu2qu from fonttools.
|
|
|
|
# https://github.com/googlefonts/ufo2ft/pull/461
|
|
|
|
./fonttools-cu2qu.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fonttools
|
|
|
|
defcon
|
|
|
|
compreffor
|
|
|
|
booleanoperations
|
|
|
|
cffsubr
|
2022-08-12 12:06:08 +00:00
|
|
|
ufoLib2
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
# Do not depend on skia.
|
|
|
|
"--deselect=tests/integration_test.py::IntegrationTest::test_removeOverlaps_CFF_pathops"
|
|
|
|
"--deselect=tests/integration_test.py::IntegrationTest::test_removeOverlaps_pathops"
|
|
|
|
"--deselect=tests/preProcessor_test.py::TTFPreProcessorTest::test_custom_filters_as_argument"
|
|
|
|
"--deselect=tests/preProcessor_test.py::TTFInterpolatablePreProcessorTest::test_custom_filters_as_argument"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ufo2ft" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bridge from UFOs to FontTools objects";
|
|
|
|
homepage = "https://github.com/googlefonts/ufo2ft";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
};
|
|
|
|
}
|