1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 protobuf,
6 pytestCheckHook,
7 pythonOlder,
8 pythonRelaxDepsHook,
9 setuptools,
10 setuptools-scm,
11 uharfbuzz,
12 youseedee,
13}:
14
15buildPythonPackage rec {
16 pname = "gflanguages";
17 version = "0.6.1";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-mlRNzrAgeEt1/VbQEXWIxCD9NkULMOnkFsALO5H+1SY=";
24 };
25
26 pyproject = true;
27
28 # Relax the dependency on protobuf 3. Other packages in the Google Fonts
29 # ecosystem have begun upgrading from protobuf 3 to protobuf 4,
30 # so we need to use protobuf 4 here as well to avoid a conflict
31 # in the closure of fontbakery. It seems to be compatible enough.
32 pythonRelaxDeps = [ "protobuf" ];
33
34 build-system = [
35 setuptools
36 setuptools-scm
37 ];
38
39 dependencies = [ protobuf ];
40
41 nativeCheckInputs = [
42 pythonRelaxDepsHook
43 pytestCheckHook
44 uharfbuzz
45 youseedee
46 ];
47
48 meta = with lib; {
49 description = "Python library for Google Fonts language metadata";
50 homepage = "https://github.com/googlefonts/lang";
51 changelog = "https://github.com/googlefonts/lang/releases/tag/v${version}";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ danc86 ];
54 };
55}