fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
75 lines
1.5 KiB
Nix
75 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
booleanoperations,
|
|
buildPythonPackage,
|
|
cffsubr,
|
|
compreffor,
|
|
cu2qu,
|
|
defcon,
|
|
fetchPypi,
|
|
fontmath,
|
|
fonttools,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pythonRelaxDepsHook,
|
|
setuptools-scm,
|
|
skia-pathops,
|
|
ufolib2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ufo2ft";
|
|
version = "3.2.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-LkrYKERPJrKsWAYnlJJlybNy93J+uStaHv35jcZpTrU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [ "cffsubr" ];
|
|
|
|
propagatedBuildInputs = [
|
|
cu2qu
|
|
fontmath
|
|
fonttools
|
|
defcon
|
|
compreffor
|
|
booleanoperations
|
|
cffsubr
|
|
ufolib2
|
|
skia-pathops
|
|
] ++ fonttools.optional-dependencies.lxml ++ fonttools.optional-dependencies.ufo;
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# Do not depend on skia.
|
|
"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"
|
|
];
|
|
|
|
pythonImportsCheck = [ "ufo2ft" ];
|
|
|
|
meta = with lib; {
|
|
description = "Bridge from UFOs to FontTools objects";
|
|
homepage = "https://github.com/googlefonts/ufo2ft";
|
|
changelog = "https://github.com/googlefonts/ufo2ft/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|