python3Packages.shaperglot: 0.6.4 -> 1.2.1

Diff: https://github.com/googlefonts/shaperglot/compare/v0.6.4...v1.2.1

Changelog: https://github.com/googlefonts/shaperglot/releases/tag/v1.2.1
This commit is contained in:
Robert Schütz
2026-07-20 15:01:16 -07:00
parent 415dbf0d23
commit 450f8998ec

View File

@@ -2,66 +2,46 @@
lib,
buildPythonPackage,
fetchFromGitHub,
gflanguages,
num2words,
protobuf,
pytestCheckHook,
pyyaml,
setuptools-scm,
setuptools,
strictyaml,
termcolor,
ufo2ft,
vharfbuzz,
youseedee,
rustPlatform,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "shaperglot";
version = "0.6.4";
version = "1.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "googlefonts";
repo = "shaperglot";
tag = "v${version}";
hash = "sha256-O6z7TJpC54QkqX5/G1HKSvaDYty7B9BnCQ4FpsLsEMs=";
tag = "v${finalAttrs.version}";
hash = "sha256-g8f8Q2DvYNvm8i6S+9K/jhhUiuGw366dht0Khx3/INg=";
};
env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-ivl3Zq0HRn4yP9JKfbjSaaERjbQ3SAEWhHk6toFp8dE=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools>=75.0.0" "setuptools"
cd shaperglot-py
'';
build-system = [
setuptools
setuptools-scm
];
cargoRoot = "..";
dependencies = [
gflanguages
num2words
protobuf
pyyaml
strictyaml
termcolor
ufo2ft
vharfbuzz
youseedee
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "shaperglot" ];
meta = {
description = "Tool to test OpenType fonts for language support";
homepage = "https://github.com/googlefonts/shaperglot";
changelog = "https://github.com/googlefonts/shaperglot/releases/tag/v${version}";
changelog = "https://github.com/googlefonts/shaperglot/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ danc86 ];
mainProgram = "shaperglot";
};
}
})