nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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.14.1";
18 pyproject = true;
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-/TjTzDWblBcbqNP9weTe/eIgas70+X11tIUDu4rAOwE=";
23 };
24
25 build-system = [ setuptools-scm ];
26
27 dependencies = [
28 defcon
29 fontmath
30 fontparts
31 fonttools
32 mutatormath
33 ]
34 ++ defcon.optional-dependencies.lxml
35 ++ fonttools.optional-dependencies.lxml
36 ++ fonttools.optional-dependencies.ufo;
37
38 checkPhase = ''
39 runHook preCheck
40 for t in Tests/*.py; do
41 python "$t"
42 done
43 runHook postCheck
44 '';
45
46 meta = {
47 description = "Read, write and generate UFOs with designspace data";
48 homepage = "https://github.com/LettError/ufoProcessor";
49 license = lib.licenses.mit;
50 maintainers = [ lib.maintainers.sternenseemann ];
51 };
52}