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