blob: 98fdd3d9aa4c76550e9d601dc48a6a4f03f0d438 (
plain) (
blame)
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
, fetchPypi
, defcon
, fonttools
, glyphslib
, pytestCheckHook
, setuptools
, setuptools-scm
, unicodedata2
}:
buildPythonPackage rec {
pname = "glyphsets";
version = "0.6.11";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-ACeD9O/kOE2we95gW4ak8504Y+azoqNyMeeVaWmEzak=";
};
patches = [
# Upstream has a needlessly strict version range for setuptools_scm, our
# setuptools-scm is newer. We can't use pythonRelaxDepsHook for this
# because it's in setup_requires which means we'll fail the requirement
# before pythonRelaxDepsHook can run.
./0001-relax-setuptools-scm-dep.patch
];
propagatedBuildInputs = [
defcon
fonttools
glyphslib
setuptools
unicodedata2
];
nativeBuildInputs = [
setuptools-scm
];
doCheck = true;
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
export PATH="$out/bin:$PATH"
'';
meta = with lib; {
description = "Google Fonts glyph set metadata";
homepage = "https://github.com/googlefonts/glyphsets";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
};
}
|