1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fonttools,
6 protobuf,
7 pythonRelaxDepsHook,
8 pytestCheckHook,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "axisregistry";
14 version = "0.4.9";
15 format = "setuptools";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-obpjiX86fzokao7UWQUXgarKYRNdxplr6/r2D2d7DCI=";
20 };
21
22 propagatedBuildInputs = [
23 fonttools
24 protobuf
25 ];
26 nativeBuildInputs = [
27 pythonRelaxDepsHook
28 setuptools-scm
29 ];
30
31 doCheck = true;
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 # Relax the dependency on protobuf 3. Other packages in the Google Fonts
35 # ecosystem have begun upgrading from protobuf 3 to protobuf 4,
36 # so we need to use protobuf 4 here as well to avoid a conflict
37 # in the closure of fontbakery. It seems to be compatible enough.
38 pythonRelaxDeps = [ "protobuf" ];
39
40 meta = with lib; {
41 description = "Google Fonts registry of OpenType variation axis tags";
42 homepage = "https://github.com/googlefonts/axisregistry";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ danc86 ];
45 };
46}