Files
nixpkgs/pkgs/development/python-modules/axisregistry/default.nix

53 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fonttools,
protobuf,
gfmetadata,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "axisregistry";
version = "0.4.20";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-y+x/EUp+LPVkviXKok3pg/mPxpzSiuYimIL27Xm4G28=";
};
# Relax the dependency on protobuf 3. Other packages in the Google Fonts
# ecosystem have begun upgrading from protobuf 3 to protobuf 4,
# so we need to use protobuf 4 here as well to avoid a conflict
# in the closure of fontbakery. It seems to be compatible enough.
pythonRelaxDeps = [ "protobuf" ];
env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
build-system = [ setuptools-scm ];
dependencies = [
fonttools
gfmetadata
protobuf
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "axisregistry" ];
meta = {
description = "Google Fonts registry of OpenType variation axis tags";
homepage = "https://github.com/googlefonts/axisregistry";
changelog = "https://github.com/googlefonts/axisregistry/blob/v${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
danc86
jopejoe1
];
};
}