about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ufoprocessor/default.nix
blob: dda782897b8d70615657aa716d62cce7b946bc44 (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
{ lib, buildPythonPackage, fetchPypi
, defcon, fonttools, lxml, fs
, mutatormath, fontmath, fontparts
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "ufoprocessor";
  version = "1.9.0";

  src = fetchPypi {
    pname = "ufoProcessor";
    inherit version;
    sha256 = "0ns11aamgavgsfj8qf5kq7dvzmgl0mhr1cbych2f075ipfdvva5s";
    extension = "zip";
  };

  nativeBuildInputs = [ setuptools-scm ];

  propagatedBuildInputs = [
    defcon
    lxml
    fonttools
    fs
    fontmath
    fontparts
    mutatormath
  ];

  checkPhase = ''
    runHook preCheck
    for t in Tests/*.py; do
      # https://github.com/LettError/ufoProcessor/issues/32
      [[ "$(basename "$t")" = "tests_fp.py" ]] || python "$t"
    done
    runHook postCheck
  '';

  meta = with lib; {
    description = "Read, write and generate UFOs with designspace data";
    homepage = "https://github.com/LettError/ufoProcessor";
    license = licenses.mit;
    maintainers = [ maintainers.sternenseemann ];
  };
}