mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
python3Packages.shaperglot: 0.6.4 -> 1.2.1 (#543992)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user