blob: d543220c4b25daa49e9d868d4fa39ad64a43c499 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch2
, pythonOlder
# build-system
, setuptools
, setuptools-scm
# dependencies
, fonttools
, defcon
, fontmath
, booleanoperations
# tests
, python
}:
buildPythonPackage rec {
pname = "fontparts";
version = "0.12.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "fontParts";
inherit version;
hash = "sha256-eeU13S1IcC+bsiK3YDlT4rVDeXDGcxx1wY/is8t5pCA=";
extension = "zip";
};
patches = [
(fetchpatch2 {
# replace remaining usage of assertEquals for Python 3.12 support
# https://github.com/robotools/fontParts/pull/720
url = "https://github.com/robotools/fontParts/commit/d7484cd98051aa1588683136da0bb99eac31523b.patch";
hash = "sha256-maoUgbmXY/RC4TUZI4triA9OIfB4T98qjUaQ94uhsbg=";
})
];
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
booleanoperations
defcon
fontmath
fonttools
]
++ defcon.optional-dependencies.pens
++ fonttools.optional-dependencies.ufo
++ fonttools.optional-dependencies.lxml
++ fonttools.optional-dependencies.unicode;
checkPhase = ''
runHook preCheck
${python.interpreter} Lib/fontParts/fontshell/test.py
runHook postCheck
'';
meta = with lib; {
description = "An API for interacting with the parts of fonts during the font development process.";
homepage = "https://github.com/robotools/fontParts";
changelog = "https://github.com/robotools/fontParts/releases/tag/${version}";
license = licenses.mit;
maintainers = [ maintainers.sternenseemann ];
};
}
|