python311Packages.gflanguages: refactor

This commit is contained in:
Fabian Affolter
2023-12-21 11:31:10 +01:00
committed by GitHub
parent 03288b60ad
commit 9f9bcedb4b
@@ -2,9 +2,10 @@
, buildPythonPackage
, fetchPypi
, protobuf
, setuptools-scm
, pythonRelaxDepsHook
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, setuptools-scm
, uharfbuzz
, youseedee
}:
@@ -14,19 +15,29 @@ buildPythonPackage rec {
version = "0.5.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-LoppJHzX0dOpHnwMCyS1ACdIO4cqwb370ksvsXDFHzQ=";
};
propagatedBuildInputs = [
protobuf
# 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
];
doCheck = true;
propagatedBuildInputs = [
protobuf
];
nativeCheckInputs = [
pythonRelaxDepsHook
pytestCheckHook
@@ -34,15 +45,10 @@ buildPythonPackage rec {
youseedee
];
# 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" ];
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 ];
};