1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, gflanguages
, num2words
, poetry-core
, protobuf
, pytestCheckHook
, strictyaml
, termcolor
, ufo2ft
, vharfbuzz
, youseedee
}:
buildPythonPackage rec {
pname = "shaperglot";
version = "0.5.0";
# PyPI source tarballs omit tests, fetch from Github instead
src = fetchFromGitHub {
owner = "googlefonts";
repo = "shaperglot";
rev = "refs/tags/v${version}";
hash = "sha256-jmYB1tsMMpFs0X/FW3z9el2nFr8De2jR1dO658w7U4Q=";
};
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";
mainProgram = "shaperglot";
homepage = "https://github.com/googlefonts/shaperglot";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
};
}
|