2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
# build
|
2022-02-10 20:34:41 +00:00
|
|
|
, setuptools-scm
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
# runtime
|
2022-02-10 20:34:41 +00:00
|
|
|
, booleanoperations
|
|
|
|
, cffsubr
|
2023-01-20 10:41:00 +00:00
|
|
|
, compreffor
|
|
|
|
, cu2qu
|
|
|
|
, defcon
|
|
|
|
, fonttools
|
|
|
|
, skia-pathops
|
2022-08-12 12:06:08 +00:00
|
|
|
, ufoLib2
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
# tests
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ufo2ft";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "2.30.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-ZpO55rNXkVbqMdGxsZn77gJnGBbM8c8GIAaQnTzVnf8=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
cu2qu
|
2022-02-10 20:34:41 +00:00
|
|
|
fonttools
|
|
|
|
defcon
|
|
|
|
compreffor
|
|
|
|
booleanoperations
|
|
|
|
cffsubr
|
2022-08-12 12:06:08 +00:00
|
|
|
ufoLib2
|
2023-01-20 10:41:00 +00:00
|
|
|
skia-pathops
|
|
|
|
]
|
|
|
|
++ fonttools.optional-dependencies.lxml
|
|
|
|
++ fonttools.optional-dependencies.ufo;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
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;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|