2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, booleanoperations
|
2024-01-25 14:12:00 +00:00
|
|
|
, buildPythonPackage
|
2022-02-10 20:34:41 +00:00
|
|
|
, cffsubr
|
2023-01-20 10:41:00 +00:00
|
|
|
, compreffor
|
|
|
|
, cu2qu
|
|
|
|
, defcon
|
2024-01-25 14:12:00 +00:00
|
|
|
, fetchPypi
|
2023-01-20 10:41:00 +00:00
|
|
|
, fonttools
|
2024-01-25 14:12:00 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-04-21 15:54:59 +00:00
|
|
|
, pythonRelaxDepsHook
|
2024-01-25 14:12:00 +00:00
|
|
|
, setuptools-scm
|
2023-01-20 10:41:00 +00:00
|
|
|
, skia-pathops
|
2024-01-13 08:15:51 +00:00
|
|
|
, ufolib2
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ufo2ft";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.1.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-5EUrML1Yd88tVEP+Kd9TmXm+5Ejk/XIH/USYBakK/wQ=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"cffsubr"
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
cu2qu
|
2022-02-10 20:34:41 +00:00
|
|
|
fonttools
|
|
|
|
defcon
|
|
|
|
compreffor
|
|
|
|
booleanoperations
|
|
|
|
cffsubr
|
2024-01-13 08:15:51 +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
|
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabledTests = [
|
2022-02-10 20:34:41 +00:00
|
|
|
# Do not depend on skia.
|
2024-01-25 14:12:00 +00:00
|
|
|
"test_removeOverlaps_CFF_pathops"
|
|
|
|
"test_removeOverlaps_pathops"
|
|
|
|
"test_custom_filters_as_argument"
|
|
|
|
"test_custom_filters_as_argument"
|
|
|
|
# Some integration tests fail
|
|
|
|
"test_compileVariableCFF2"
|
|
|
|
"test_compileVariableTTF"
|
|
|
|
"test_drop_glyph_names_variable"
|
|
|
|
"test_drop_glyph_names_variable"
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ufo2ft"
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bridge from UFOs to FontTools objects";
|
|
|
|
homepage = "https://github.com/googlefonts/ufo2ft";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/googlefonts/ufo2ft/releases/tag/v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.mit;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|