blob: 5712b150569ed2bc1b959e6a9d146b81a6e62320 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{ lib
, buildPythonPackage
, fetchPypi
, attrs
, fonttools
, pytestCheckHook
, setuptools-scm
# optionals
, cattrs
, lxml
, orjson
, msgpack
}:
buildPythonPackage rec {
pname = "ufolib2";
version = "0.16.0";
format = "pyproject";
src = fetchPypi {
pname = "ufoLib2";
inherit version;
hash = "sha256-SfDcf3LMrP5/rv4NU9N5cdRWZNiwVj7zaVb6e/pVor0=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
attrs
fonttools
] ++ fonttools.optional-dependencies.ufo;
passthru.optional-dependencies = {
lxml = [ lxml ];
converters = [ cattrs ];
json = [ cattrs orjson ];
msgpack = [ cattrs msgpack ];
};
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ "ufoLib2" ];
meta = with lib; {
description = "Library to deal with UFO font sources";
homepage = "https://github.com/fonttools/ufoLib2";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
|