depot/third_party/nixpkgs/pkgs/development/python-modules/shaperglot/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

55 lines
1,000 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, gflanguages
, num2words
, poetry-core
, protobuf
, pytestCheckHook
, strictyaml
, termcolor
, ufo2ft
, vharfbuzz
, youseedee
}:
buildPythonPackage rec {
pname = "shaperglot";
version = "0.3.1";
# PyPI source tarballs omit tests, fetch from Github instead
src = fetchFromGitHub {
owner = "googlefonts";
repo = "shaperglot";
rev = "v${version}";
hash = "sha256-29MzD42rgh+7n/0kjqKGDxXPnUEvj/xxEIKWZg03pxw=";
};
pyproject = true;
propagatedBuildInputs = [
gflanguages
num2words
protobuf
strictyaml
termcolor
ufo2ft
vharfbuzz
youseedee
];
nativeBuildInputs = [
poetry-core
];
doCheck = true;
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Tool to test OpenType fonts for language support";
homepage = "https://github.com/googlefonts/shaperglot";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
};
}