diff --git a/pkgs/development/python-modules/defcon/default.nix b/pkgs/development/python-modules/defcon/default.nix index 4bb079e9be7a..8d5d9da29a02 100644 --- a/pkgs/development/python-modules/defcon/default.nix +++ b/pkgs/development/python-modules/defcon/default.nix @@ -1,14 +1,11 @@ { lib , buildPythonPackage -, fetchPypi -, fontpens -, fonttools -, fs -, lxml -, pytestCheckHook , pythonOlder +, fetchPypi , setuptools-scm -, unicodedata2 +, fonttools +, fontpens +, pytestCheckHook }: buildPythonPackage rec { @@ -30,23 +27,27 @@ buildPythonPackage rec { propagatedBuildInputs = [ fonttools - ]; + ] + ++ fonttools.optional-dependencies.ufo + ++ fonttools.optional-dependencies.unicode; nativeCheckInputs = [ - fontpens - fs - lxml pytestCheckHook - unicodedata2 ]; pythonImportsCheck = [ "defcon" ]; + passthru.optional-dependencies = { + pens = [ fontpens ]; + lxml = [ fonttools ] ++ fonttools.optional-dependencies.lxml; + }; + meta = with lib; { description = "A set of UFO based objects for use in font editing applications"; homepage = "https://github.com/robotools/defcon"; + changelog = "https://github.com/robotools/defcon/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ sternenseemann ]; };