nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, fonttools
5, openstep-plist
6, ufoLib2
7, pytestCheckHook
8, unicodedata2
9, setuptools-scm
10, ufonormalizer
11, xmldiff
12, defcon
13, ufo2ft
14, skia-pathops
15}:
16
17buildPythonPackage rec {
18 pname = "glyphslib";
19 version = "6.0.4";
20
21 format = "pyproject";
22
23 src = fetchPypi {
24 pname = "glyphsLib";
25 inherit version;
26 sha256 = "sha256-PT66n1WEO5FNcwov8GaXT1YNrAi22X4HN7iVNkuehKI=";
27 };
28
29 nativeBuildInputs = [ setuptools-scm ];
30
31 checkInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "glyphsLib" ];
34
35 propagatedBuildInputs = [
36 fonttools
37 openstep-plist
38 ufoLib2
39 unicodedata2
40 ufonormalizer
41 xmldiff
42 defcon
43 ufo2ft
44 skia-pathops
45 ];
46
47 disabledTestPaths = [
48 "tests/builder/designspace_gen_test.py" # this test tries to use non-existent font "CoolFoundry Examplary Serif"
49 "tests/builder/interpolation_test.py" # this test tries to use a font that previous test should made
50 ];
51
52 meta = {
53 description = "Bridge from Glyphs source files (.glyphs) to UFOs and Designspace files via defcon and designspaceLib";
54 homepage = "https://github.com/googlefonts/glyphsLib";
55 license = lib.licenses.asl20;
56 maintainers = [ lib.maintainers.BarinovMaxim ];
57 };
58}
59