Files
nixpkgs/pkgs/development/python-modules/gflanguages/default.nix
Fabian Affolter cafb11842a python3Packages.gflanguages: 0.7.9 -> 0.7.10
https://github.com/googlefonts/lang/releases/tag/v0.7.10

This commit was automatically generated using update-python-libraries.
2026-08-25 01:24:25 +02:00

70 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
protobuf,
pytestCheckHook,
regex,
setuptools,
setuptools-scm,
uharfbuzz,
youseedee,
gfmetadata,
}:
buildPythonPackage rec {
pname = "gflanguages";
version = "0.7.10";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-d5tSIlJhwlJ/8lwYlfLoPglV57+bNehlnghDwk4nNU0=";
};
# 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
setuptools-scm
];
dependencies = [
protobuf
regex
gfmetadata
];
nativeCheckInputs = [
pytestCheckHook
regex
uharfbuzz
youseedee
];
pythonImportsCheck = [ "gflanguages" ];
disabledTests = [
# AssertionError
"test_exemplars_are_in_script"
"test_sample_texts_are_in_script"
];
meta = {
description = "Python library for Google Fonts language metadata";
homepage = "https://github.com/googlefonts/lang";
changelog = "https://github.com/googlefonts/lang/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
danc86
jopejoe1
];
};
}