1{
2 lib,
3 fetchFromGitHub,
4 gitUpdater,
5 buildPythonPackage,
6 pytestCheckHook,
7 setuptools,
8 fonttools,
9 typing-extensions,
10 ufonormalizer,
11 ufolib2,
12 defcon,
13}:
14
15buildPythonPackage rec {
16 pname = "vfblib";
17 version = "0.7.0";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "LucasFonts";
22 repo = "vfbLib";
23 rev = "v${version}";
24 hash = "sha256-1F7Em3qX5QKHaGDYVfEOHwYu3PxZUWboe67Hgitvebc=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 fonttools
31 typing-extensions
32 ufonormalizer
33 ufolib2
34 defcon
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "vfbLib" ];
40
41 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
42
43 meta = with lib; {
44 description = "Converter and deserializer for FontLab Studio 5 VFB files";
45 homepage = "https://github.com/LucasFonts/vfbLib";
46 license = licenses.gpl3Only;
47 maintainers = with maintainers; [ jopejoe1 ];
48 };
49}