depot/third_party/nixpkgs/pkgs/development/python-modules/gflanguages/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

55 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, protobuf
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, setuptools-scm
, uharfbuzz
, youseedee
}:
buildPythonPackage rec {
pname = "gflanguages";
version = "0.5.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-LoppJHzX0dOpHnwMCyS1ACdIO4cqwb370ksvsXDFHzQ=";
};
# 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"
];
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
protobuf
];
nativeCheckInputs = [
pythonRelaxDepsHook
pytestCheckHook
uharfbuzz
youseedee
];
meta = with lib; {
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 = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
};
}