2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gitUpdater,
|
|
|
|
buildPythonPackage,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
fonttools,
|
|
|
|
typing-extensions,
|
|
|
|
ufonormalizer,
|
|
|
|
ufolib2,
|
|
|
|
defcon,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vfblib";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.7.1";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LucasFonts";
|
|
|
|
repo = "vfbLib";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-p+uoSB3LIEi1Zvm8HgsOJcRXngZWXj3BwIlxqIBfmB4=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
fonttools
|
|
|
|
typing-extensions
|
|
|
|
ufonormalizer
|
|
|
|
ufolib2
|
|
|
|
defcon
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "vfbLib" ];
|
|
|
|
|
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Converter and deserializer for FontLab Studio 5 VFB files";
|
|
|
|
homepage = "https://github.com/LucasFonts/vfbLib";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ jopejoe1 ];
|
|
|
|
};
|
|
|
|
}
|