python312Packages.glyphsets: add PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION

This commit is contained in:
Fabian Affolter
2024-10-18 22:34:48 +02:00
parent d7fde463ce
commit 81ee4faf93
@@ -1,16 +1,17 @@
{
lib,
buildPythonPackage,
fetchPypi,
defcon,
fetchPypi,
fonttools,
gflanguages,
glyphslib,
pytestCheckHook,
pythonOlder,
pyyaml,
requests,
setuptools,
setuptools-scm,
setuptools,
unicodedata2,
}:
@@ -19,11 +20,15 @@ buildPythonPackage rec {
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-fa+W1IGIZcn1P1xNKm1Yb/TOuf4QdDVnIvlDkOLOcLY=";
};
env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
postPatch = ''
substituteInPlace setup.py \
--replace-fail "setuptools_scm>=8.0.4,<8.1" "setuptools_scm"
@@ -57,9 +62,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Google Fonts glyph set metadata";
mainProgram = "glyphsets";
homepage = "https://github.com/googlefonts/glyphsets";
changelog = "https://github.com/googlefonts/glyphsets/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
mainProgram = "glyphsets";
};
}