depot/third_party/nixpkgs/pkgs/development/python-modules/shaperglot/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

70 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
gflanguages,
num2words,
protobuf,
pytestCheckHook,
pythonOlder,
pyyaml,
setuptools-scm,
setuptools,
strictyaml,
termcolor,
ufo2ft,
vharfbuzz,
youseedee,
}:
buildPythonPackage rec {
pname = "shaperglot";
version = "0.6.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "googlefonts";
repo = "shaperglot";
rev = "refs/tags/v${version}";
hash = "sha256-O6z7TJpC54QkqX5/G1HKSvaDYty7B9BnCQ4FpsLsEMs=";
};
env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools>=75.0.0" "setuptools"
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
gflanguages
num2words
protobuf
pyyaml
strictyaml
termcolor
ufo2ft
vharfbuzz
youseedee
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "shaperglot" ];
meta = with lib; {
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}";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
mainProgram = "shaperglot";
};
}