1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 defcon,
6 fonttools,
7 lxml,
8 fs,
9 mutatormath,
10 fontmath,
11 fontparts,
12 setuptools-scm,
13}:
14
15buildPythonPackage rec {
16 pname = "ufoprocessor";
17 version = "1.9.0";
18
19 src = fetchPypi {
20 pname = "ufoProcessor";
21 inherit version;
22 sha256 = "0ns11aamgavgsfj8qf5kq7dvzmgl0mhr1cbych2f075ipfdvva5s";
23 extension = "zip";
24 };
25
26 nativeBuildInputs = [ setuptools-scm ];
27
28 propagatedBuildInputs = [
29 defcon
30 lxml
31 fonttools
32 fs
33 fontmath
34 fontparts
35 mutatormath
36 ];
37
38 checkPhase = ''
39 runHook preCheck
40 for t in Tests/*.py; do
41 # https://github.com/LettError/ufoProcessor/issues/32
42 [[ "$(basename "$t")" = "tests_fp.py" ]] || python "$t"
43 done
44 runHook postCheck
45 '';
46
47 meta = with lib; {
48 description = "Read, write and generate UFOs with designspace data";
49 homepage = "https://github.com/LettError/ufoProcessor";
50 license = licenses.mit;
51 maintainers = [ maintainers.sternenseemann ];
52 };
53}