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