2024-09-26 11:04:55 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
fonttools,
|
|
|
|
fontfeatures,
|
|
|
|
ufolib2,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ufomerge";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.8.2";
|
2024-09-26 11:04:55 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "googlefonts";
|
|
|
|
repo = "ufomerge";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-D+BhKCKWgprQn+eXFgwnSN/06+JF5CiUS0VAS1Kvedw=";
|
2024-09-26 11:04:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [ "fonttools" ];
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
fonttools
|
|
|
|
ufolib2
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
fontfeatures
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Failing due to fonttools being to old
|
|
|
|
"tests/test_layout.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ufomerge" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Command line utility and Python library that merges two UFO source format fonts into a single file";
|
|
|
|
homepage = "https://github.com/googlefonts/ufomerge";
|
|
|
|
changelog = "https://github.com/googlefonts/ufomerge/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ jopejoe1 ];
|
|
|
|
};
|
|
|
|
}
|