1{ lib
2, buildPythonPackage
3, fetchPypi
4, fontpens
5, fonttools
6, fs
7, lxml
8, pytestCheckHook
9, pythonOlder
10, setuptools-scm
11, unicodedata2
12}:
13
14buildPythonPackage rec {
15 pname = "defcon";
16 version = "0.10.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-ruOW5taeRa5lyCZHgTktTCkRaTSyc3rXbYIwtAwYKkQ=";
24 extension = "zip";
25 };
26
27 nativeBuildInputs = [
28 setuptools-scm
29 ];
30
31 propagatedBuildInputs = [
32 fonttools
33 ];
34
35 checkInputs = [
36 fontpens
37 fs
38 lxml
39 pytestCheckHook
40 unicodedata2
41 ];
42
43 pythonImportsCheck = [
44 "defcon"
45 ];
46
47 meta = with lib; {
48 description = "A set of UFO based objects for use in font editing applications";
49 homepage = "https://github.com/robotools/defcon";
50 license = licenses.mit;
51 maintainers = with maintainers; [ sternenseemann ];
52 };
53}